Re: How to check if checkpoint is finished in sql script?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Yi Sun <yinan81(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to check if checkpoint is finished in sql script?
Date: 2022-09-05 10:05:35
Message-ID: 20220905100535.GA17522@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Meera Nair 2022-09-05 10:50:05 RE: Unable to archive logs in standby server
Previous Message Yi Sun 2022-09-05 08:55:28 How to check if checkpoint is finished in sql script?