Re: Foreign key referencing subclasses.

Поиск
Список
Период
Сортировка
От Johannes Grødem
Тема Re: Foreign key referencing subclasses.
Дата
Msg-id 20010323145043.A4814@unity.copyleft.no
обсуждение исходный текст
Ответ на Re: Foreign key referencing subclasses.  (Christof Glaser <gcg@gl.aser.de>)
Список pgsql-sql
>> CREATE TABLE resource_record(
>>   rrid SERIAL
>>   -- etc.
>> );
> There is no primary key for this table. Just write PRIMARY KEY after 
> SERIAL.

There is.  I accidentally left it out in the post.

> CREATE INDEX soa_record_pkey ON soa_record ( rrid );
> You could also state the referenced field name (you actually have to, 
> if you happen to reference to a non-primary key field):

Ok, thanks.  This will work for this case, but I still want to be able
to reference resource_record*.  Will this be possible in later versions?
Inheritance isn't quite as useful if I can't.  Sorry to be such a whiner,
by the way.  PostgreSQL is great.

-- 
johs


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

Предыдущее
От: "postgresql"
Дата:
Сообщение: Re: creating "job numbers"
Следующее
От: Richard H
Дата:
Сообщение: Re: SOME PL/PGSQL PROBLEMS