Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SELECT
relname,
relfilenode
FROM pg_catalog.pg_class
WHERE relname in (
'<table>',
'<index>'
)
-- Order by oid for convenience if you're checking multiple relations.
ORDER BY oid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment