From: | Vadim Mikheev <vadim(at)krs(dot)ru> |
---|---|
To: | Hannu Krosing <hannu(at)trust(dot)ee> |
Cc: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>, Todd Graham Lewis <tlewis(at)mindspring(dot)net>, lockhart(at)alumni(dot)caltech(dot)edu, pgsql-hackers(at)hub(dot)org |
Subject: | Re: [HACKERS] FOREIGN KEYs (Was: Benchmarking PGSQL against Microsoft SQL 7) |
Date: | 1999-01-11 14:03:31 |
Message-ID: | 369A04B3.D9BC8C5E@krs.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Hannu Krosing wrote:
>
> Bruce Momjian wrote:
> >
> > That leaves foreign keys. We really need to address this, because it
> > comes up so often. Can we hash through the issues again, and see if
> > someone takes on the project.
>
> If my memory servers me right:
>
> Vadim _almost_ did implement FOREIGN KEY syntax just before 6.4 (or
I did nothing for syntax.
> 6.4.1 ?)
> using the trigger version in contrib.
>
> But he stopped the work as he was unhappy with the way the contrib stuff
> worked i.e. the keys can't break the rules even _during_ the statement.
I stopped just after starting -:)
> I wholly agree with this being broken, but it still would not hurt very
> because the same is unfortunately true for current primary keys/unique
> indexes, try for example
Yes, this would be nice, but I have no time/wish to do this -
I would like to do "right" implementation someday.
And for UNIQUE keys too.
> hannu=> update test set k=k+1;
> ERROR: Cannot insert a duplicate key into a unique index
>
> IMHO the right behaviour would be to allow this kind of updates, and I
> suspect that Oracle does allow it.
Sure.
Vadim
From | Date | Subject | |
---|---|---|---|
Next Message | Carl Johnston | 1999-01-11 18:35:23 | CASE statements in 6.5 |
Previous Message | Hannu Krosing | 1999-01-11 13:45:35 | Re: [HACKERS] FOREIGN KEYs (Was: Benchmarking PGSQL against Microsoft SQL 7) |
From | Date | Subject | |
---|---|---|---|
Next Message | Sferacarta Software | 1999-01-11 14:45:51 | Re[2]: [HACKERS] JOIN syntax. Examples? |
Previous Message | Hannu Krosing | 1999-01-11 13:45:35 | Re: [HACKERS] FOREIGN KEYs (Was: Benchmarking PGSQL against Microsoft SQL 7) |