Skip to content

Instantly share code, notes, and snippets.

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 stevehenderson/97acd3af4a22d3d68c089473026da659 to your computer and use it in GitHub Desktop.
Save stevehenderson/97acd3af4a22d3d68c089473026da659 to your computer and use it in GitHub Desktop.
Query a postgres table with partitions and show the partition
SELECT tableoid::regclass AS source, *
FROM schema.partitioned_table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment