Re: Re: Get the tables names? - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Re: Get the tables names?
Date
Msg-id Pine.BSF.4.21.0107231450490.56666-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Get the tables names?  ("dado feigenblatt" <dado@wildbrain.com>)
List pgsql-sql
On Mon, 23 Jul 2001, dado feigenblatt wrote:

> > system tables all ~ '^pg', which is probably a better check than
> > user=postgresql.
> 
> You never know when someone will name their tables starting with "pg".
> Well, you never know when someone will create their tables as user postgres
> either.

You probably want to check for '^pg_' since you shouldn't be able to
create user table names starting with pg_. As the administrator on my
home test system:

sszabo=> create table "pg_a"(A int);
ERROR:  Illegal class name 'pg_a'       The 'pg_' name prefix is reserved for system catalogs



pgsql-sql by date:

Previous
From: Florian Weimer
Date:
Subject: Determining if two subnets intersect
Next
From: "David M. Richter"
Date:
Subject: Re: Query optimizing - paradox behave