Skip to content

Instantly share code, notes, and snippets.

@graphbear
Last active September 29, 2017 17:29
Show Gist options
  • Save graphbear/71820fa27d3c10529b5d39b7bb008420 to your computer and use it in GitHub Desktop.
Save graphbear/71820fa27d3c10529b5d39b7bb008420 to your computer and use it in GitHub Desktop.
what's in a postgres tablespace
SELECT
c.relname,
c.reltype,
t.spcname
FROM
pg_class c
JOIN pg_tablespace t ON c.reltablespace = t.oid
ORDER BY
t.spcname,
c.relname;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment