Created
August 27, 2020 16:12
-
-
Save GraphBear/2a9c9454f0ebe9696af6878fde92a8c1 to your computer and use it in GitHub Desktop.
find parent table of a toast table in postgresql
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 | |
from | |
pg_class | |
where | |
reltoastrelid = ( select oid from pg_class where relname = 'toast_table_name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment