pgsql: Clean up properly error_context_stack in autovacuum worker on ex

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Clean up properly error_context_stack in autovacuum worker on ex
Дата
Msg-id E1iN5R8-0003m7-NS@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Clean up properly error_context_stack in autovacuum worker on exception

Any callback set would have no meaning in the context of an exception.
As an autovacuum worker exits quickly in this context, this could be
only an issue within EmitErrorReport(), where the elog hook is for
example called.  That's unlikely to going to be a problem, but let's be
clean and consistent with other code paths handling exceptions.  This is
present since 2909419, which introduced autovacuum.

Author: Ashwin Agrawal
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/CALfoeisM+_+dgmAdAOHAu0k-ZpEHHqSSG=GRf3pKJGm8OqWX0w@mail.gmail.com
Backpatch-through: 9.4

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/669feabfb76213046c8bffcfa9630376e770d4de

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 3 +++
1 file changed, 3 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Fix parsing of integer values for connection parametersin libpq
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix thinkos from 4f4061b for libpq integer parsing