Re: deleting the master but not the detail

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: deleting the master but not the detail
Дата
Msg-id dcc563d10807171102i45ee2949o71296fdf33f408fc@mail.gmail.com
обсуждение исходный текст
Ответ на Re: deleting the master but not the detail  ("Douglas McNaught" <doug@mcnaught.org>)
Ответы Re: deleting the master but not the detail  ("Ismael ...." <ismaelpsp@hotmail.com>)
Список pgsql-general
On Thu, Jul 17, 2008 at 10:52 AM, Douglas McNaught <doug@mcnaught.org> wrote:
> On Thu, Jul 17, 2008 at 12:11 PM, Ismael .... <ismaelpsp@hotmail.com> wrote:
>>
>> hi
>> I have one of those master-detail relationships here and I need to be able
>> to delete the master but leave the details untouched
>
> Then remove the referential integrity constraint, since it's obviously
> incompatible with your business requirements.

Generally I'd agree, but it might be useful to set the child record
referencing id field to NULL in this circumstance.

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: query optimization
Следующее
От: "Ismael ...."
Дата:
Сообщение: Re: deleting the master but not the detail