Re: BUG #14357: BUG : old_snapshot_threshold no effect

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BUG #14357: BUG : old_snapshot_threshold no effect
Дата
Msg-id CACjxUsOUPjG3zYKX_R56_7+=jCQQ++CBtoB1yN0v3HtzAJiWwg@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #14357: BUG : old_snapshot_threshold no effect  (digoal@126.com)
Список pgsql-bugs
On Wed, Oct 5, 2016 at 11:21 AM,  <digoal@126.com> wrote:

> I set old_snapshot_threshold to 1min, but it's no effect to prevent bloat?

> BEGIN
> postgres=# insert into test01 values (1);
> INSERT 0 1
> [no COMMIT or ROLLBACK of this transaction]

> another session :
> [other modifications and vacuums]
> [no early cleanup or "snapshot too old" error]

> why ?  It's a bug?

This feature does not attempt to perform early cleanup on (or past)
a transaction which has acquired a transaction ID (normally through
data modification) and which has not completed.  In other words, it
helps with long-running read-only transactions, but a long-running
transaction which writes can still cause bloat.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: digoal@126.com
Дата:
Сообщение: BUG #14357: BUG : old_snapshot_threshold no effect
Следующее
От: Reyes Ponce
Дата:
Сообщение: Re: BUG #14343: UPSERT (ON CONFLICT) doesn't check ON CONFLICT constraint first