Re: SIGSEGV in BRIN autosummarize
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers@postgresql.org
Date: 2017-10-30T16:14:51Z
Lists: pgsql-hackers
Alvaro Herrera wrote: > Alvaro Herrera wrote: > > > Before pushing, I'll give a look to the regular autovacuum path to see > > if it needs a similar fix. > > Reading that one, my conclusion is that it doesn't have the same problem > because the strings are allocated in AutovacuumMemCxt which is not reset > by error recovery. This gave me the idea to use that context instead of > TopTransactionContext to store the strings in workitem processing also. > The patch I propose now is attached. I ended up backpatching 335f3d04e4c8. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix autovacuum work item error handling
- 52ca7572c364 10.1 landed
- be72b9c378bf 11.0 landed