Re: How to check is the table system

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Андрей <andyk(at)softwarium(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to check is the table system
Date: 2005-09-15 18:38:04
Message-ID: 15474.1126809484@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?B?0JDQvdC00YDQtdC5?= <andyk(at)softwarium(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-09-15 18:39:59 Re: How to check is the table system
Previous Message Alvaro Herrera 2005-09-15 18:30:45 Re: How to check is the table system