Reference to Inherited Table

Поиск
Список
Период
Сортировка
От Thorsten Haude
Тема Reference to Inherited Table
Дата
Msg-id 20020323123751.GA923@eumel.yoo.net
обсуждение исходный текст
Ответы Re: Reference to Inherited Table  (Chris <csmith@squiz.net>)
Список pgsql-novice
Hi,

I want to reference an inherited table:
- - - Schnipp - - -
create table parent
(
    id  serial,
    primary key(id)
);

create table child
(
    thing integer
) inherits (parent);

create table third
(
    stuff integer references child
);
- - - Schnapp - - -
But get an error:
ERROR:  PRIMARY KEY for referenced table "child" not found

Is there a way to do it or do I have to reference parent?

tia,
Thorsten
--
Auch Hunger ist Krieg.
    - Willy Brandt

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

Предыдущее
От: John Taylor
Дата:
Сообщение: Re: Visio ODBC winnt Linux question
Следующее
От: Richard A Lough
Дата:
Сообщение: Re: Estimating Database Disk Space