Re: How to check is the table system

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to check is the table system
Дата
Msg-id 15474.1126809484@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to check is the table system  (Андрей <andyk@softwarium.net>)
Список pgsql-general
=?UTF-8?B?0JDQvdC00YDQtdC5?= <andyk@softwarium.net> writes:
>     In what way can I determine is the table system? ODBC driver does it
> by checking table name's prefix: if it begins with 'pg_' - driver
> desides that the table is system, but that's a bad idea.

Yup, that's been incorrect since PG 7.3.  The proper test is whether the
table is in the pg_catalog schema.

Depending on your purposes you might also want to exclude pg_toast.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: How to check is the table system
Следующее
От: Kevin Murphy
Дата:
Сообщение: CLUSTER equivalent