Re: Disable Trigger for session only
| От | gmb |
|---|---|
| Тема | Re: Disable Trigger for session only |
| Дата | |
| Msg-id | 1435648667132-5855844.post@n5.nabble.com обсуждение |
| Ответ на | Re: Disable Trigger for session only (Adrian Klaver <adrian.klaver@aklaver.com>) |
| Список | pgsql-sql |
Adrian Klaver-4 wrote > That I do not know. A thought did come to mind though. That is to add a > reset boolean column(default ='f') to your detail table and make the > trigger procedure aware of it. Then when you are resetting the values to > zero have reset = 't' and have the trigger procedure ignore those rows. > Then do the 'normal' update to update the summary table. Thanks Adrian, this will be a workable solution and I'll take it into account. One problem is that many will view the addition of another column for this purpose to be unjustified. -- View this message in context: http://postgresql.nabble.com/Disable-Trigger-for-session-only-tp5855658p5855844.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
В списке pgsql-sql по дате отправления: