From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | claus(dot)pruefer(at)webcodex(dot)de |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: |
Date: | 2006-06-01 14:12:21 |
Message-ID: | 20060601141221.GC18513@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
claus(dot)pruefer(at)webcodex(dot)de wrote:
> and a UNIQUE INDEX on columns "groupid,orderby"
>
> now i want to update
>
> UPDATE
> orderby SET orderby = orderby +10
> WHERE groupid = 1;
>
> -> FAILS because of UNIQUE INDEX
This is a Known Issue(tm). (A "gotcha", some would say).
http://archives.postgresql.org/pgsql-sql/2004-10/msg00146.php
Surely you can find better references in the archives, but I'm too lazy.
(keywords: "deferrable unique constraint")
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2006-06-01 14:33:57 | Re: updating unique columns |
Previous Message | Euler Taveira de Oliveira | 2006-05-31 23:22:22 | Re: reindexdb command utlility |