Transaction Strategies for Natural Primary Keys & Cascading Updates

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Transaction Strategies for Natural Primary Keys & Cascading Updates
Date: 2009-09-08 22:26:00
Message-ID: 396486430909081526t19f548e3w476c54f9a375169c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

For those experienced using natural primary key designs, what update
strategies do you use when updating related tuples within a
transaction when the primary key is also subject to changes?

For example consider a table is vertically partitioned into two or
more segments (all related on the natural primary key). Allowing for
the primary key to be updated (and cascaded to the foreign keys), are
there any ways to updated all of the tuples in a single transaction
using the primary key in the where clause?

--
Regards,
Richard Broersma Jr.

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David W Noon 2009-09-08 23:02:21 Re: where clauses and multiple tables
Previous Message Scott Frankel 2009-09-08 21:25:20 where clauses and multiple tables