Re: FOREIGN KEY CONSTRAINT AND INHERITANCE

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: FOREIGN KEY CONSTRAINT AND INHERITANCE
Date: 2007-04-25 15:56:41
Message-ID: 20070425155641.GA30991@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Wed, dem 25.04.2007, um 19:25:46 +0400 mailte Sergey Karin folgendes:
> vka7=# insert into style_type_object values(1, 2, false, 0, 0);
> ERROR: insert or update on table "style_type_object" violates foreign key
> constraint "fk_id_style"
> DETAIL: Key (id_style)=(2) is not present in table "style".

Read my answer yesterday in the thread "inherits and foreign key
problem", this mailinglist.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-04-25 16:13:57 Re: Vacuum-full very slow
Previous Message Steve Crawford 2007-04-25 15:55:12 Vacuum-full very slow