Skip to content

PostgreSQL

Polina Soshnin edited this page Jan 26, 2016 · 14 revisions

####Locally

Connecting to a database:

  • $ psql postgres # the default database
  • $ psql database_name
  • postgres=# \c database_name
  • Quit: \q
  • Describe table schema: \d "Messages";

Checking which port you're on:

  • select * from pg_settings where name = 'port';

Options for Development/Production

  • Heroku Postgres addon (uses Amazon RDS)
  • Use Amazon RDS directly

Heroku

Amazon RDS for Postgres

Clone this wiki locally