Re: [ADMIN] how to find a pg_toast table's primary table

Поиск
Список
Период
Сортировка
От Jerry Sievers
Тема Re: [ADMIN] how to find a pg_toast table's primary table
Дата
Msg-id 86wpf3qu08.fsf@jerry.enova.com
обсуждение исходный текст
Ответ на [ADMIN] how to find a pg_toast table's primary table  (ProPAAS DBA <dba@propaas.com>)
Ответы Re: [ADMIN] how to find a pg_toast table's primary table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
ProPAAS DBA <dba@propaas.com> writes:

> 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?

Find the pg_class row with reltoastrelid = $oid-of-toast-table.

HTH

>
>
>
> Thanks in advance

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [ADMIN] how to find a pg_toast table's primary table
Следующее
От: Jorge Torralba
Дата:
Сообщение: Re: [ADMIN] how to find a pg_toast table's primary table