Re: Issue with bgworker, SPI and pgstat_report_stat

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Issue with bgworker, SPI and pgstat_report_stat
Дата
Msg-id CA+TgmoY61zbqZjBiWT=jkFkf9sGacG+pjkTnv0uKZZw2t0nsYw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Issue with bgworker, SPI and pgstat_report_stat  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Issue with bgworker, SPI and pgstat_report_stat  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Список pgsql-hackers
On Sat, Sep 3, 2016 at 12:29 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Sat, Sep 3, 2016 at 10:02 AM, Tomas Vondra
> <tomas.vondra@2ndquadrant.com> wrote:
>> In any case, I think adding the pgstat_report_stat() into worker_spi seems
>> like a reasonable (and backpatchable) fix.
>
> Doing just that sounds reasonable seen from here. I am wondering also
> if it would not be worth mentioning in the documentation of the
> bgworkers that users trying to emulate somewhat the behavior of a
> backend should look at PostgresMain(). The code in itself is full of
> hints as well.

Everybody seems happy with this fix for a first step, so I've
committed it and back-patched it to 9.3.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control
Следующее
От: Robert Haas
Дата:
Сообщение: Re: IF (NOT) EXISTS in psql-completion