Skip to content

Instantly share code, notes, and snippets.

@prestonp
Last active October 31, 2016 17:05
Show Gist options
  • Save prestonp/7b85deb346c9657c3f6dcf8138079dae to your computer and use it in GitHub Desktop.
Save prestonp/7b85deb346c9657c3f6dcf8138079dae to your computer and use it in GitHub Desktop.

you can mark comments on postgres tables and columns like what-what:

comment on table user is 'this table stores user info';
comment on column user.age is 'user age';

and view them in psql

\d+ user

\d+ is like a verbose description of your table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment