pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Some questions about old_snapshot_threshold
3+ messages / 2 participants
[nested] [flat]

* Some questions about old_snapshot_threshold
@ 2016-11-25 19:39  Marc-Olaf Jaschke <moj@dshare.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Marc-Olaf Jaschke @ 2016-11-25 19:39 UTC (permalink / raw)
  To: pgsql-admin

Hi,

1. The following presentation uses serializable transaction isolation level to force a snapshot too old error. (http://momjian.us/main/writings/pgsql/features.pdf)
Is it possible to get a snapshot too old error with active old_snapshot_threshold when the only used transaction isolation level is read committed?

2. Does activating old_snapshot_threshold have a negative impact on peformance?

Regards,
Marc-Olaf

-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Some questions about old_snapshot_threshold
@ 2016-11-28 21:47  Kevin Grittner <kgrittn@gmail.com>
  parent: Marc-Olaf Jaschke <moj@dshare.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Kevin Grittner @ 2016-11-28 21:47 UTC (permalink / raw)
  To: Marc-Olaf Jaschke <moj@dshare.de>; +Cc: pgsql-admin

On Fri, Nov 25, 2016 at 1:39 PM, Marc-Olaf Jaschke <moj@dshare.de> wrote:

> 1. The following presentation uses serializable transaction
> isolation level to force a snapshot too old error.
> (http://momjian.us/main/writings/pgsql/features.pdf)
> Is it possible to get a snapshot too old error with active
> old_snapshot_threshold when the only used transaction isolation
> level is read committed?

Yes.  Transaction isolation level doesn't have much impact on this
feature.

> 2. Does activating old_snapshot_threshold have a negative impact
> on peformance?

The latest tests, near the end of development, were run by Tomas
Vondra and are reported here:

https://www.postgresql.org/message-id/067acb3d-80eb-279d-fce0-90e0a36c6aa2@2ndquadrant.com

Note that the "immediate" lines are using a setting of zero, which
is ridiculously aggressive, and only intended for testing purposes.
The lines ending in "-10-rw" are using a 10 minute expiration,
which is still far more aggressive than I would expect most
environments to use, but should give some idea what the impact
could be "worst case".  Tomas says in the linked email, "I'm
personally convinced the performance impact is within noise."

FWIW, it makes no sense to enable this feature with a read-only
workload, but that configuration was heavily tested, as it
represents a worst case.  Also note that Tomas used a multi-socket
NUMA machine for these tests, because that is where we saw the
largest differences during early tests, before some optimizations
were applied.

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


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Some questions about old_snapshot_threshold
@ 2016-12-05 14:52  Marc-Olaf Jaschke <moj@dshare.de>
  parent: Kevin Grittner <kgrittn@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Marc-Olaf Jaschke @ 2016-12-05 14:52 UTC (permalink / raw)
  To: Kevin Grittner <kgrittn@gmail.com>; +Cc: pgsql-admin

Thanks for the explanation!

Best Regards,
Marc-Olaf


> Am 28.11.2016 um 22:47 schrieb Kevin Grittner <kgrittn@gmail.com>:
> 
> On Fri, Nov 25, 2016 at 1:39 PM, Marc-Olaf Jaschke <moj@dshare.de> wrote:
> 
>> 1. The following presentation uses serializable transaction
>> isolation level to force a snapshot too old error.
>> (http://momjian.us/main/writings/pgsql/features.pdf)
>> Is it possible to get a snapshot too old error with active
>> old_snapshot_threshold when the only used transaction isolation
>> level is read committed?
> 
> Yes.  Transaction isolation level doesn't have much impact on this
> feature.
> 
>> 2. Does activating old_snapshot_threshold have a negative impact
>> on peformance?
> 
> The latest tests, near the end of development, were run by Tomas
> Vondra and are reported here:
> 
> https://www.postgresql.org/message-id/067acb3d-80eb-279d-fce0-90e0a36c6aa2@2ndquadrant.com
> 
> Note that the "immediate" lines are using a setting of zero, which
> is ridiculously aggressive, and only intended for testing purposes.
> The lines ending in "-10-rw" are using a 10 minute expiration,
> which is still far more aggressive than I would expect most
> environments to use, but should give some idea what the impact
> could be "worst case".  Tomas says in the linked email, "I'm
> personally convinced the performance impact is within noise."
> 
> FWIW, it makes no sense to enable this feature with a read-only
> workload, but that configuration was heavily tested, as it
> represents a worst case.  Also note that Tomas used a multi-socket
> NUMA machine for these tests, because that is where we saw the
> largest differences during early tests, before some optimizations
> were applied.
> 
> --
> Kevin Grittner
> EDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2016-12-05 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25 19:39 Some questions about old_snapshot_threshold Marc-Olaf Jaschke <moj@dshare.de>
2016-11-28 21:47 ` Kevin Grittner <kgrittn@gmail.com>
2016-12-05 14:52   ` Marc-Olaf Jaschke <moj@dshare.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox