| От | nolan@celery.tssi.com |
|---|---|
| Тема | Re: [SQL] rewriting values with before trigger |
| Дата | |
| Msg-id | 20030424211805.22526.qmail@celery.tssi.com обсуждение |
| Ответ на | Re: [SQL] rewriting values with before trigger (Dennis Gearon <gearond@cvc.net>) |
| Список | pgsql-general |
> OR, deliberately name your triggers with alphanumerical prefixes that > forces them to fire in a certain order, and making the trigger that > does the conversion fire first? The SQL 99 standard mandates that triggers fire the order defined, though the docs say pgsql does it in alphabetical order, possibly because that was easier to implement. It is probably better to assume that in any given situation they will fire in a random order and sequence events yourself when necessary. That may mean throwing the '' into NULL logic into every trigger for that table, though there are probably more elegant ways to achieve that result. If God (or Codd?) had meant us to enable triggers to fire in a particular order, there would be a 'firing order nnnn' sequencing parameter in the standard. -- Mike Nolan
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера