Re: Update of foreign key values

From: "Roderick A(dot) Anderson" <raanders(at)acm(dot)org>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: PgSQL General ML <pgsql-general(at)postgresql(dot)org>
Subject: Re: Update of foreign key values
Date: 2003-08-11 23:40:12
Message-ID: Pine.LNX.4.33.0308111635280.12601-100000@main.cyber-office.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11 Aug 2003, Ron Johnson wrote:

> Maybe this will do it:
> http://www.postgresql.org/docs/7.3/static/sql-set-constraints.html

Saw this but my take was it required the original constraint to be created
with the deferred(able) option. But hey, I'll give it a try since all my
other attempts have increased the number of barley pops I'll _have_ to
drink tonight! One more won't hurt (well maybe in the morning.)

> begin;
> set constraint foo DEFERRED;
> update parent_table;
> update child_table;
> commit;

Rod
--
"Open Source Software - Sometimes you get more than you paid for..."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Mikulec 2003-08-12 00:41:44 Help! Can't pg_dump anything: handler procedure for procedural language plpgsql not found
Previous Message Tom Lane 2003-08-11 23:29:36 Re: 7.4Beta1 "failed to create socket: Address family not