Re: Transaction Strategies for Natural Primary Keys & Cascading Updates

Поиск
Список
Период
Сортировка
От miller_2555
Тема Re: Transaction Strategies for Natural Primary Keys & Cascading Updates
Дата
Msg-id 25355755.post@talk.nabble.com
обсуждение исходный текст
Ответ на Transaction Strategies for Natural Primary Keys & Cascading Updates  (Richard Broersma <richard.broersma@gmail.com>)
Список pgsql-general


Richard Broersma wrote:
>
> 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
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>

Perhaps table inheritance with OIDS (if I understand the concept of vertical
partitioning correctly)? I'm an amateur at database design, but thought I'd
offer something.
--
View this message in context:
http://www.nabble.com/Transaction-Strategies-for-Natural-Primary-Keys---Cascading-Updates-tp25355262p25355755.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: David W Noon
Дата:
Сообщение: Re: where clauses and multiple tables
Следующее
От: Scott Frankel
Дата:
Сообщение: where clauses and multiple tables