pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Yi Sun <yinan81@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: How to check if checkpoint is finished in sql script?
Date: Mon, 5 Sep 2022 12:05:35 +0200
Message-ID: <20220905100535.GA17522@depesz.com> (raw)
In-Reply-To: <CABWY_HA=4H7DBj_d11whAckeuRHaY45407YeeqWpm-b2-PJEYg@mail.gmail.com>
References: <CABWY_HA=4H7DBj_d11whAckeuRHaY45407YeeqWpm-b2-PJEYg@mail.gmail.com>

On Mon, Sep 05, 2022 at 04:55:28PM +0800, Yi Sun wrote:
> How to check if the checkpoint is finished in sql script please? We know
> that the log file will show it, but we want to check it in sql then can
> easily be used by ansible, thanks

Well, if the command "checkpoint" finished, and returned, and there is
no error - then checkpoint has finished.

Best regards,

depesz






view thread (2+ messages)

Message-ID: <20220905100535.GA17522@depesz.com>
Permalink:  ../20220905100535.GA17522@depesz.com/
Also on:    postgresql.org/message-id/20220905100535.GA17522@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: depesz@depesz.com, yinan81@gmail.com
  Subject: Re: How to check if checkpoint is finished in sql script?
  In-Reply-To: <20220905100535.GA17522@depesz.com>
  References: <CABWY_HA=4H7DBj_d11whAckeuRHaY45407YeeqWpm-b2-PJEYg@mail.gmail.com> <20220905100535.GA17522@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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