select relname from pg_class where reltoastrelid = ( select oid from pg_class where relname = 'toast_table_name' );
On Tue, Dec 13, 2016 at 3:24 PM, ProPAAS DBA <dba@xxxxxxxxxxx> wrote:
Hi all;
I'm seeing this table as the most vacuumed table:
pg_toast.pg_toast_16784
How do I find the primary table for this toast table?
Thanks in advance
--
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Thanks,
Jorge Torralba
----------------------------
Note: This communication may contain privileged or other confidential information. If you are not the intended recipient, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this email in error and delete the copy you received. Thank You.
Jorge Torralba
----------------------------
Note: This communication may contain privileged or other confidential information. If you are not the intended recipient, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this email in error and delete the copy you received. Thank You.