Does "pg_ctl stop" wait for archiving to complete? - Mailing list pgsql-admin

From Mitchell Bösecke
Subject Does "pg_ctl stop" wait for archiving to complete?
Date
Msg-id CACT-PvJ28eTEfOUjxYVCK0ETVBmH895pP2D9WPSjBCdKN-dXsA@mail.gmail.com
Whole thread Raw
Responses Re: Does "pg_ctl stop" wait for archiving to complete?
Re: Does "pg_ctl stop" wait for archiving to complete?
List pgsql-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

(o) 587.410.4067
(f) 780.453.3986

pgsql-admin by date:

Previous
From: "Campbell, Lance"
Date:
Subject: Re: Possible request for new feature
Next
From: Payal Singh
Date:
Subject: Re: Does "pg_ctl stop" wait for archiving to complete?