Re: Re: Get the tables names?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Re: Get the tables names?
Дата
Msg-id Pine.BSF.4.21.0107231450490.56666-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: Get the tables names?  ("dado feigenblatt" <dado@wildbrain.com>)
Список 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 по дате отправления:

Предыдущее
От: Florian Weimer
Дата:
Сообщение: Determining if two subnets intersect
Следующее
От: "David M. Richter"
Дата:
Сообщение: Re: Query optimizing - paradox behave