Skip to content
Anders Törnqvist edited this page Sep 7, 2024 · 36 revisions

Batch Insert

Graph DB

Awesome

New


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

Clone this wiki locally