Re: Reaping Temp tables to avoid XID wraparound

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Reaping Temp tables to avoid XID wraparound
Дата
Msg-id 20190219033648.GQ15532@paquier.xyz
обсуждение исходный текст
Ответ на Re: Reaping Temp tables to avoid XID wraparound  (James Sewell <james.sewell@jirotech.com>)
Список pgsql-hackers
On Tue, Feb 19, 2019 at 10:52:54AM +1100, James Sewell wrote:
> I agree the use case is narrow - but it's also pretty critical.

Yeah..

> I suppose an in-core way of disconnecting idle sessions after x time would
> work too - but that seems like a sledgehammer approach.

Such solutions at SQL level need to connect to a specific database and
I implemented one for fun, please see the call to
BackgroundWorkerInitializeConnection() here:
https://github.com/michaelpq/pg_plugins/tree/master/kill_idle

So that's not the end of it as long as we don't have a cross-database
solution.  If we can get something in PGPROC then just connecting to
shared memory would be enough.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Prepared transaction releasing locks before deregistering its GID
Следующее
От: "Higuchi, Daisuke"
Дата:
Сообщение: [Bug Fix] ECPG: could not use set xxx to default statement