Re: How to check is the table system

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
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:39:59
Message-ID: 20050915183955.GC20941@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Sep 15, 2005 at 09:12:44PM +0300, ???????????? wrote:
> Hello!
>
> 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. I can create
> table and call it 'pg_mytable', but it won't become system!

Check it is in the pg_catalog schema...

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Murphy 2005-09-15 18:40:08 CLUSTER equivalent
Previous Message Tom Lane 2005-09-15 18:38:04 Re: How to check is the table system