RE: [GENERAL] update inside transaction violates unique constrain t?

From: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
To: "'Andrew Sullivan'" <sullivana(at)bpl(dot)on(dot)ca>
Cc: "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org>
Subject: RE: [GENERAL] update inside transaction violates unique constrain t?
Date: 2000-09-26 22:06:48
Message-ID: 8F4C99C66D04D4118F580090272A7A23018D16@SECTORBASE1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I get an error (which is good). But, if I do
>
> #BEGIN;
> #SELECT * FROM name_and_ip WHERE name = 'foo' OR name = 'bar' FOR
> UPDATE;
> #UPDATE name_and_ip SET ip = '192.168.186.249' where name = 'foo';
> UPDATE 1
> #COMMIT;
> COMMIT

Btree doesn't take into account that tuple was just marked for update
but still alive. Seems it was handled properly in 6.5.X ?
I'll take a look...

Vadim

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikheev, Vadim 2000-09-26 23:05:49 RE: RE: [GENERAL] update inside transaction violates un ique constraint?
Previous Message Hannu Krosing 2000-09-26 22:00:30 use of / in ~ vs. ~*