Re: possible to DELETE CASCADE?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: possible to DELETE CASCADE?
Дата
Msg-id 20041230210751.GA28934@wolff.to
обсуждение исходный текст
Ответ на Re: possible to DELETE CASCADE?  (Miles Keaton <mileskeaton@gmail.com>)
Список pgsql-general
On Thu, Dec 30, 2004 at 11:40:21 -0800,
  Miles Keaton <mileskeaton@gmail.com> wrote:
> On Thu, 30 Dec 2004 11:10:38 -0800, I wrote:
> > Is it possible for a query to delete a record and all of its
> > foreign-key dependents?
>
>
> Sorry - to be more clear : I like having my foreign keys RESTRICT from
> this kind of cascading happening automatically or accidently.
>
> So I'm looking for a query that could force it to happen, if truly intended.


Patient: Doctor, it hurts when I do this.
Doctor: Then stop doing that.

Maybe you should only allow a special account to be able to delete from
the parent table and control access to that special account. Depending
on what kind of accidents you are trying to prevent, this may help.

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

Предыдущее
От: Timothy Perrigo
Дата:
Сообщение: syntax for inserting unicode character literal
Следующее
От: "Prasad Duggineni"
Дата:
Сообщение: postgresql 8.0 rc1