Re: Deferred Snapshots - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Deferred Snapshots
Date
Msg-id 29161.1314114268@sss.pgh.pa.us
Whole thread Raw
In response to Deferred Snapshots  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> Back in 2009, I proposed the idea of Lazy Snapshots.
> The idea was to put off generating a snapshot until we need one.

It was a broken idea then, and it has not become less so with the
passage of time.

> However, that does not exclude a number of cases where the idea is
> still meaningful.

> 1. When we access all-visible data blocks.

How's that help?  The block can still become not-all-visible immediately
after you look; and even if it stays all-visible throughout the query,
that doesn't help the problem of inconsistency with other rows whose
status did change recently.

The fundamental hole in all these ideas is that they destroy the
guarantee of consistent treatment of row visibility, which is what a
snapshot is *for*.  And as I said last time, it's not acceptable to not
know when the snapshot will be taken.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Getting rid of pg_pltemplate
Next
From: Tom Lane
Date:
Subject: Re: cheaper snapshots redux