Jerry Sievers <gsievers19@comcast.net> writes:
> ProPAAS DBA <dba@propaas.com> writes:
>> pg_toast.pg_toast_16784
>> How do I find the primary table for this toast table?
> Find the pg_class row with reltoastrelid = $oid-of-toast-table.
After you've done that a couple of times, you'll notice that the numeric
part of the toast table's name is the OID of its parent, so really you
just need to do
select '16784'::regclass;
Confirming the reltoastrelid link is a good idea though.
regards, tom lane