Advertisement
tkaczanowski

postgresql basics

Apr 19th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. \?
  2. \l - show databases
  3. \dt - show tables
  4. \conninfo
  5. \d+ tablename - describe table
  6. \i filename - execute file
  7. pg_dump -s database - dump db schema
  8. pg_dump database - dump db schema + data
  9. pg_dump -s database -t tablename - dump single table schema
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement