Re: unique key problem on update

From: Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>
To: pgsql-sql(at)postgresql(dot)org
Cc: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Subject: Re: unique key problem on update
Date: 2013-09-20 16:30:50
Message-ID: 201309201730.50960.gary.stainburn@ringways.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Friday 20 September 2013 17:26:58 Thomas Kellerer wrote:
> You need to define the primary key as deferrable:
>
> create table skills_pages
> (
> sp_id serial not null,
> sp_sequence integer not null,
> sp_title character varying(80),
> sp_narative text,
> primary key (sp_id) deferrable
> );

Cheers. I'll look at that. It's actually the second unique index that's the
problem but I'm guessing I can set that index up as deferrable too.

Hopefully it'll work for mysql too.

--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Kellerer 2013-09-20 16:42:08 Re: unique key problem on update
Previous Message Thomas Kellerer 2013-09-20 16:26:58 Re: unique key problem on update