Skip to content

Instantly share code, notes, and snippets.

@pcothenet
Created June 2, 2015 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcothenet/f5a03f4d5941b1ee9cb0 to your computer and use it in GitHub Desktop.
Save pcothenet/f5a03f4d5941b1ee9cb0 to your computer and use it in GitHub Desktop.
SELECT schemaname, tablename, "column", "type"
FROM pg_table_def
WHERE tablename = 'TABLE_NAME';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment