Re: changing multiple pk's in one update - Mailing list pgsql-sql

From Richard Broersma
Subject Re: changing multiple pk's in one update
Date
Msg-id 396486430904131418g3898dc5h2472f9efab331489@mail.gmail.com
Whole thread Raw
In response to Re: changing multiple pk's in one update  (Glenn Maynard <glennfmaynard@gmail.com>)
Responses Re: changing multiple pk's in one update  (Glenn Maynard <glennfmaynard@gmail.com>)
List pgsql-sql
On Mon, Apr 13, 2009 at 2:09 PM, Glenn Maynard <glennfmaynard@gmail.com> wrote:

> Your PK is a composite of (entry, order)?  Won't your foreign keys
> elsewhere all break when you shift the order around?

If there really are foreign keys, then an update will not be allowed
to shift a primary key unless the foreign key is set with ON UPDATE
CASCADE then the shifts will be cascaded to all references
automatically.

--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug


pgsql-sql by date:

Previous
From: Glenn Maynard
Date:
Subject: Re: changing multiple pk's in one update
Next
From: Glenn Maynard
Date:
Subject: Re: changing multiple pk's in one update