| От | Peter Eisentraut |
|---|---|
| Тема | Re: Pet Peeves? |
| Дата | |
| Msg-id | 498C40D5.9050409@gmx.net обсуждение исходный текст |
| Ответ на | Re: Pet Peeves? (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-general |
Alvaro Herrera wrote: > A trivial, stupid implementation is perhaps not too difficult. The > problem is getting the smarts right, i.e. an optimized version. You > certainly don't want to be executing a query against a large table for > every INSERT on another one, for example; it's better if if you can > figure out when to skip it. If you do it using the constraint trigger mechanism, it would work very similar to foreign keys, I'd imagine. Instead of running a query against the primary key table, you'd run the check constraint expression.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера