Re: [HACKERS] Pre-existing bug in trigger.c
| От | Alvaro Herrera |
|---|---|
| Тема | Re: [HACKERS] Pre-existing bug in trigger.c |
| Дата | |
| Msg-id | 20170919084151.slpsbmero7lzth5u@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Pre-existing bug in trigger.c (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > After studying this awhile, I've concluded that neither of those > ideas leads to a fix simple enough that I'd be comfortable with > back-patching it. What seems like the best answer is to not pass > delete_ok = true to afterTriggerInvokeEvents in AfterTriggerEndQuery. > Then, afterTriggerInvokeEvents will examine the passed event list > pointer only during its loop initialization, at which time it's > surely still valid. For reference: this fix was committed as 27c6619e9c8f. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления: