Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there

From: Andres Freund <andres(at)anarazel(dot)de>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Raphael Hertzog <hertzog(at)debian(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there
Date: 2017-11-08 07:58:27
Message-ID: 20171108075827.uwfuqcii2bzrsnbl@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2017-11-08 16:53:49 +0900, Michael Paquier wrote:
> You can check that by using a manual CHECKPOINT query for example.
> Based on what I see on this thread, my guess is that a failure would
> show up.

Not in the the default config, no? Note the default config escape
hatch:
void
CheckPointTwoPhase(XLogRecPtr redo_horizon)
{
int i;
int serialized_xacts = 0;

if (max_prepared_xacts <= 0)
return; /* nothing to do */

- Andres

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Stefan Tzeggai 2017-11-08 11:50:20 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
Previous Message Michael Paquier 2017-11-08 07:53:49 Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there