From: Mitchell Bösecke <mitchell.bosecke@forcorp.com>
To: pgsql-admin@postgresql.org
Subject: Does "pg_ctl stop" wait for archiving to complete?
Date: Thu, 6 Nov 2014 13:49:45 -0700
Message-ID: <CACT-PvJ28eTEfOUjxYVCK0ETVBmH895pP2D9WPSjBCdKN-dXsA@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
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?
In my case, I WANT the pg_ctl command to hang until all files are archived
because immediately after I issue "pg_ctl stop" I want to be able to
unmount the disk that the archived logs are being copied to.
Thanks for any information,
Mitchell
--
Mitchell Bosecke, B.Sc.
Software Developer
FORCORP
#101, 11710 Kingsway NW
Edmonton , AB, T5G 0X5
www.forcorp.com
(o) 587.410.4067
(f) 780.453.3986
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-admin@postgresql.org
Cc: mitchell.bosecke@forcorp.com
Subject: Re: Does "pg_ctl stop" wait for archiving to complete?
In-Reply-To: <CACT-PvJ28eTEfOUjxYVCK0ETVBmH895pP2D9WPSjBCdKN-dXsA@mail.gmail.com>
References: <CACT-PvJ28eTEfOUjxYVCK0ETVBmH895pP2D9WPSjBCdKN-dXsA@mail.gmail.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