Re: Background worker/idle sessions and caching

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Background worker/idle sessions and caching
Дата
Msg-id CAMsr+YGyjeRUJpbbANLuXG6zpmYT_0ZTRkxPKLxTCyrMhzNgVQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Background worker/idle sessions and caching  (Jeremy Finzel <finzelj@gmail.com>)
Список pgsql-hackers
On 19 July 2018 at 04:30, Jeremy Finzel <finzelj@gmail.com> wrote:

My use case is similar to the example of worker_spi.  A plpgsql function runs every 1 minute and processes records in audit tables in order to update fact tables with records that have changed.  I noticed for example renaming a column in the function was not picked up, and I had to restart the workers to reset the cache.

relation_openrv and relation_openrv_extended call AcceptInvalidationMessages when the lockmode is not NoLock. 

Don't we use those when doing SPI queries? No time to check right now, try setting some breakpoints or tracing through.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Possible bug in logical replication.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Possible bug in logical replication.