Referencing pg_user

Поиск
Список
Период
Сортировка
От Benj
Тема Referencing pg_user
Дата
Msg-id 20020810004145.GB2544@imagineasia.com
обсуждение исходный текст
Список pgsql-general
Hi

Just subscribed to the list.

How do I put a column constraint that references
the pg_user/pg_shadow system table?

I'm trying to create a table with a field attribute like this:

create table feedback (
    ...
    usesysid    integer references pg_shadow,
    ...
);

But I get "ERROR: PRIMARY KEY for referenced table "pg_shadow"
not found." I tried this as postgres user.

I'm putting the constraint so that only records associated with
PostgreSQL users can be inserted into the table.


--
Benjamin Oris Jr.
bastabob@flash.net.ph

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: SQL Comments
Следующее
От: Steve Lane
Дата:
Сообщение: Transactions in functions ( was Re: transactions, serial ids, and JDBC)