Re: SSI and Hot Standby - Mailing list pgsql-hackers

From Nicolas Barbier
Subject Re: SSI and Hot Standby
Date
Msg-id AANLkTikL4B7yEQ4WHtj-kxYGsbH0GowHJF3P93G=SVcX@mail.gmail.com
Whole thread Raw
In response to Re: SSI and Hot Standby  (Anssi Kääriäinen <anssi.kaariainen@thl.fi>)
Responses Re: SSI and Hot Standby  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
2011/1/21 Anssi Kääriäinen <anssi.kaariainen@thl.fi>:

> Sorry for bothering all of you, but I just don't get this. What if T2 rolls
> back instead of committing? Then the snapshot of T3 would have been valid,
> right? Now, for the snapshot of T3 it doesn't matter if T2 commits or if it
> doesn't, because it can't see the changes of T2 in any case. Thus, it would
> seem that the snapshot is valid. On the other hand I can't see anything
> wrong in the logic in your post. What am I missing? I am feeling stupid...
>
> At least for dumps I don't see how T2 can matter (assuming T3 is the
> pg_dump's snapshot). Because if you reload from the dump, T2 never happened
> in that dump. In the reloaded database it just did not exist at all.

This has been discussed before; in [1] I summarized:

"IOW, one could say that the backup is consistent only if it were
never compared against the system as it continued running after the
dump took place."

Nicolas

[1] <URL:http://archives.postgresql.org/pgsql-hackers/2010-09/msg01763.php>


pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: SSI and Hot Standby
Next
From: Shigeru HANADA
Date:
Subject: Re: SQL/MED - file_fdw