Re: Strange bug
| От | Tom Lane |
|---|---|
| Тема | Re: Strange bug |
| Дата | |
| Msg-id | 6965.1133275062@sss.pgh.pa.us обсуждение |
| Ответ на | Strange bug ("Leif B. Kristensen" <leif@solumslekt.org>) |
| Ответы |
Re: Strange bug
|
| Список | pgsql-sql |
"Leif B. Kristensen" <leif@solumslekt.org> writes: > I just noticed that I accidentally got a duplicate id. My > definitions are here: > CREATE TABLE citations ( > citation_id INTEGER PRIMARY KEY, > source_fk INTEGER REFERENCES sources (source_id) > ); > CREATE TABLE relation_citations ( > relation_fk INTEGER REFERENCES relations (relation_id) > ) INHERITS (citations); relation_citations doesn't have a primary key. See http://www.postgresql.org/docs/8.1/static/ddl-inherit.html particularly the "caveats" section. regards, tom lane
В списке pgsql-sql по дате отправления: