Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XxFNm-0004RG-9z for pgsql-admin@arkaria.postgresql.org; Sat, 06 Dec 2014 13:26:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XxFNl-0007vM-KP for pgsql-admin@arkaria.postgresql.org; Sat, 06 Dec 2014 13:26:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XxFNk-0007vG-Ub for pgsql-admin@postgresql.org; Sat, 06 Dec 2014 13:26:45 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XxFNh-0005Oq-4z for pgsql-admin@postgresql.org; Sat, 06 Dec 2014 13:26:43 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XxFNY-00060W-Nf; Sat, 06 Dec 2014 08:26:32 -0500 Date: Sat, 6 Dec 2014 08:26:32 -0500 From: Bruce Momjian To: Guillaume Lelarge Cc: Mitchell =?iso-8859-1?Q?B=F6secke?= , pgsql-admin@postgresql.org Subject: Re: Does "pg_ctl stop" wait for archiving to complete? Message-ID: <20141206132632.GB1314@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Fri, Nov 7, 2014 at 07:09:14AM +0100, Guillaume Lelarge wrote: > Le 6 nov. 2014 21:59, "Mitchell Bösecke" 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 http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin