Created
July 10, 2019 18:12
-
-
Save dfcarpenter/faf15ead9dbedbbcc0308fdfb9a7f2b5 to your computer and use it in GitHub Desktop.
See if DDL causes a relation to be rewritten
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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