Re: [BUG v13] Crash with event trigger in extension
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Cc: Michael Paquier <michael@paquier.xyz>, pgsql-bugs@lists.postgresql.org
Date: 2020-09-04T13:27:15Z
Lists: pgsql-bugs
On 2020-Sep-04, Jehan-Guillaume de Rorthais wrote: > Indeed, it's much more simple and cheaper. However, the result is a bit > confusing as it's not a wrong SQL result, but the backend that actually crash. > The crash message itself appears in results/test_extensions.out, but no other > tests are run. Neither from the same SQL file or from other ones. That Means > the diff is quite large, but the error appears close from the top. Oh! If it crashes without the extension, then we don't *need* the exension and surely we don't need the test to be in src/test/modules/; my inclination would be to put it somewhere in src/test/regress/sql/event_triggers.sql, maybe at the bottom, with a comment that references this thread. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix use-after-free bug with event triggers and ALTER TABLE.
- cc623ed2f4ac 9.6.20 landed
- 93f726c04fb1 12.5 landed
- 7978ad025478 9.5.24 landed
- 66c036b4f143 11.10 landed
- 41c742a43242 10.15 landed
-
Fix use-after-free bug with event triggers in an extension script
- ced138e8cbac 14.0 landed
- 873cb8fca9b1 13.0 landed