Re: [HACKERS] Autovacuum launcher occurs error when cancelled bySIGINT
От | Alvaro Herrera |
---|---|
Тема | Re: [HACKERS] Autovacuum launcher occurs error when cancelled bySIGINT |
Дата | |
Msg-id | 20170622175254.7t3htsf3boaaltoa@alvherre.pgsql обсуждение исходный текст |
Ответ на | Re: [HACKERS] Autovacuum launcher occurs error when cancelled by SIGINT (Thomas Munro <thomas.munro@enterprisedb.com>) |
Список | pgsql-hackers |
Thomas Munro wrote: > Hmm. So the problem here is that AutoVacLauncherMain assumes that > there are only two possibilities: (1) there is no handle published in > shmem yet, so we should create a DSA area and publish the handle, and > (2) there is a handle published in shmem so we should attach to it. > But there is a another possiblity: (3) there is a handle published in > shmem, but we are already attached to it (because we've restarted our > main loop after SIGINT). > > The suggestion so far was to check if we're already attached to that > segment (making use of the implementation detail that a DSA handle is > also a DSM segment handle), but don't we know if we're already > attached by checking our AutoVacuumDSA variable? This seems like a good fix to me. Pushed this way, with an additional comment. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: