Postgresql - unders/mywiki GitHub Wiki

  • (awesome-postgres)[https://github.com/dhamaniasad/awesome-postgres]

Articles

Tutorials

Heroku Postgress articles

HStore

Migrations

Connections (Pooling)

Transactions

Charts

Caching

Amazon

Client

Postgres documentation

Commands

psql -l -U root # list all databases
psql -U root dbname_test # log into database dbname_test
\help
\h
\l - list all databases
\dt - list all tables in the database
\q 
createdb -Oroot -Eutf8 dbname_development
createdb -Oroot -Eutf8 dbname_test
ps auxwww | grep postgres
lunchy stop postgres
lunchy start postgres

\d - List tables in the database
\d employees - describe a table
createuser -P username

ALTER USER username WITH PASSWORD password