Re: Does "pg_ctl stop" wait for archiving to complete?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Mitchell Bösecke <mitchell(dot)bosecke(at)forcorp(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Does "pg_ctl stop" wait for archiving to complete?
Date: 2014-12-06 13:26:32
Message-ID: 20141206132632.GB1314@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Nov 7, 2014 at 07:09:14AM +0100, Guillaume Lelarge wrote:
> Le 6 nov. 2014 21:59, "Mitchell Bösecke" <mitchell(dot)bosecke(at)forcorp(dot)com> a écrit
> :
> >
> > Hi,
> >
> > My understanding is that when postgresql is shutdown it triggers a checkpoint
> which triggers the archiving of completed tx logs. Will the "pg_ctl stop"
> command wait for archiving to complete or is the act of archiving completely
> asynchronous from the shutdown process?
> >
>
> Nope, it doesn't wait for archiving.

Uh, are you sure about that? I thought we did wait during shutdown
unless -W was used in pg_ctl stop.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2014-12-06 13:56:54 Re: Problem pg_upgradecluster from 9.1 to 9.3
Previous Message Matthieu Lejeune 2014-12-06 08:14:42 Re: Problem pg_upgradecluster from 9.1 to 9.3