RE: Bug in FOREIGN KEY

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Jan Wieck" <janwieck(at)yahoo(dot)com>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: Bug in FOREIGN KEY
Date: 2001-01-26 22:43:59
Message-ID: EKEJJICOHDIEMGPNIFIJAEBADHAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Bruce Momjian
>
> > Bruce Momjian wrote:
> > > Here is another bug:
> > >

ISTM commands/trigger.c is broken.
The behabior seems to be changed by recent changes made by Tom.

* Check if we're interested in this row at all
* ---------- * ----------
*/ */
ntriggers = rel->trigdesc->n_after_row[event];
if (ntriggers <= 0)

Regards,
Hiroshi Inoue

> > > test=> begin;
> > > BEGIN
> > > test=> INSERT INTO primarytest2 VALUES (5,5);
> > > INSERT 18757 1
> > > test=> UPDATE primarytest2 SET col2=1 WHERE col1 = 5 AND col2 = 5;
> > > ERROR: deferredTriggerGetPreviousEvent: event for tuple (0,10) not
> > > found
> >
> > Schema?
> >
>
> CREATE TABLE primarytest2 (
> col1 INTEGER,
> col2 INTEGER,
> PRIMARY KEY(col1, col2)
> );
>
> CREATE TABLE foreigntest2 (col3 INTEGER,
> col4 INTEGER,
> FOREIGN KEY (col3, col4) REFERENCES
> primarytest2
> );
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-01-26 23:13:25 Re: Bug in FOREIGN KEY
Previous Message Jason Schroeder 2001-01-26 22:38:32 configure.in patch for readline and curses.