Skip to content

Airtime Database Notes

Stephane Jourdan edited this page Oct 4, 2013 · 1 revision

PostgreSQL basics

  • Connect to DB:
sudo -u postgres psql airtime_user
postgres-# \c airtime;
You are now connected to database "airtime" as user "airtime_user".
  • To get the server encoding:
sudo -u postgres psql postgres -c "SHOW SERVER_ENCODING"
  • To list databases and some of their specs:
sudo -u postgres psql postgres --list
Clone this wiki locally