Re: BUG #14357: BUG : old_snapshot_threshold no effect - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #14357: BUG : old_snapshot_threshold no effect
Date
Msg-id CACjxUsOUPjG3zYKX_R56_7+=jCQQ++CBtoB1yN0v3HtzAJiWwg@mail.gmail.com
Whole thread Raw
In response to BUG #14357: BUG : old_snapshot_threshold no effect  (digoal@126.com)
List 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 by date:

Previous
From: digoal@126.com
Date:
Subject: BUG #14357: BUG : old_snapshot_threshold no effect
Next
From: Reyes Ponce
Date:
Subject: Re: BUG #14343: UPSERT (ON CONFLICT) doesn't check ON CONFLICT constraint first