Re: Proposal for Implenting read-only queries during wal replay (SoC 2007) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal for Implenting read-only queries during wal replay (SoC 2007)
Date
Msg-id 12574.1172294614@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proposal for Implenting read-only queries during wal replay (SoC 2007)  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: Proposal for Implenting read-only queries during wal replay (SoC 2007)
List pgsql-hackers
"Florian G. Pflug" <fgp@phlo.org> writes:
> My line of reasoning is that stopping wal replay at a arbitrary point,
> and then starting a read-only transaction with an "empty snapshot" (meaning
> that all exactly those transactions marked as comitted in the clog are 
> assumed to be visible to the transaction) is exactly the same as sending
> the backend a SIGKILL when it just wrote the wal record in question,
> and then restarting postgres, and starting a transaction.

The hole in that reasoning is that no one would be satisfied with the
behavior of a Postgres database that was being forcibly restarted every
few seconds.  Yeah, we won't lose transactions that have been promised
committed, but losing a large fraction of transactions-in-progress won't
please anyone.  Nor will queries on a slave that's behaving like that
provide an accurate model of what the same queries would produce if issued
on the master.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Warren Turkal
Date:
Subject: Re: SCMS question
Next
From: Alvaro Herrera
Date:
Subject: Re: SCMS question