| От | Dennis Gearon |
|---|---|
| Тема | One more time on ONE-TO-MANY |
| Дата | |
| Msg-id | 40B51952.5030802@fireserve.net обсуждение исходный текст |
| Список | pgsql-general |
CC me, I'm digesting this list.
From:
http://www.sum-it.nl/cursus/dbdesign/english/intro030.php3
A quote:
' In addition *the database designer chooses* an action for delete:
* It's /only possible/ to delete a row in the one-table when there a
no more related many-rows.
* When deleting a row the RDBMS
<http://www.sum-it.nl/cursus/dbdesign/english/intro030.php3#rdbms>
/automatically/ deletes the related data in the many table. This
is called a /cascaded delete/.
* When deleting the last 'many' the RDBMS /automatically/ deletes
the related 'one' row.'
I'm pretty sure that Postgres does not support the last one
automatically. I shall have to do that one by either a chron script or a
post trigger.
Does anyone have experience with a database that will do the last one,
and what database would that be?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера