| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера