| От | Craig Ringer |
|---|---|
| Тема | Re: declare column update expression |
| Дата | |
| Msg-id | 48CE12E8.8010505@postnewspapers.com.au обсуждение |
| Ответ на | Re: declare column update expression ("Chris Velevitch" <chris.velevitch@gmail.com>) |
| Список | pgsql-general |
Chris Velevitch wrote: > On Thu, Sep 11, 2008 at 6:01 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote: >> you should to use trigger > > I've never used trigger before, it looks messy and error prone having > to write functions. It is, but it's not really all that bad. If you like you can even write a Pl/PgSQL function that (using EXECUTE) generates the required trigger functions. Not pretty, but effective. This would be an ideal case for column triggers that could be included in DOMAIN types and/or set like column constraints in the table schema definition. That doesn't seem to be on the cards for PostgreSQL in the near to mid future, though. -- Craig Ringer
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера