Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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