Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XmU5z-0000r2-6Z for pgsql-admin@arkaria.postgresql.org; Thu, 06 Nov 2014 20:55:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XmU5y-000146-KA for pgsql-admin@arkaria.postgresql.org; Thu, 06 Nov 2014 20:55:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XmU5w-0000zr-It for pgsql-admin@postgresql.org; Thu, 06 Nov 2014 20:55:52 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XmU0A-0002pC-3U for pgsql-admin@postgresql.org; Thu, 06 Nov 2014 20:49:55 +0000 Received: by mail-la0-f47.google.com with SMTP id gd6so3369770lab.34 for ; Thu, 06 Nov 2014 12:49:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=DBCP0NKyLtFxTqEEPkVj/ue1zYlT61Gs9ZnY8FkWxR8=; b=lu+40RV78BSKfDlhyz4ULGj1+9IfiDhWw7WXYxKcumVI97dOG1d5aj5EK/rU/i5USM SIX7pYT3gWXTZq10pX8/B94RgHuO7Qd65dgagDmyGwcmy49RWA0rqcZScEU9m3XNx3Sy vxxMv6Qx1jNDfpZbLikZrXFQrzbkPcLUlJnTJQK+k2N5+x1oO8yy0HIlWGGnD/L3D9fm nzv2hU4aUJZ/saioi6HtlF1SYOMPn7Xl1eQAe2QTnQwSTzSsvmLDmFth1HAWk5iSux7Z NTbD2LUUlYnljy/F/SzfKM0IA8PKS6zuHEfIuu0HUxeZY8haXJ1LvF4jLvjJtcIBTpmM cDaw== X-Gm-Message-State: ALoCoQl4HbWvKzvGdFkdw/wl+4NBktTHSXNXItREBRnQSrSxiFKHgBngNgOdxfTyYLalxYBt6sCc MIME-Version: 1.0 X-Received: by 10.112.146.37 with SMTP id sz5mr7207067lbb.27.1415306986070; Thu, 06 Nov 2014 12:49:46 -0800 (PST) Received: by 10.112.143.132 with HTTP; Thu, 6 Nov 2014 12:49:45 -0800 (PST) Date: Thu, 6 Nov 2014 13:49:45 -0700 Message-ID: Subject: Does "pg_ctl stop" wait for archiving to complete? From: =?UTF-8?Q?Mitchell_B=C3=B6secke?= To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=047d7b3a8b1e274076050736d698 X-Pg-Spam-Score: -2.6 (--) 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 --047d7b3a8b1e274076050736d698 Content-Type: text/plain; charset=UTF-8 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 --047d7b3a8b1e274076050736d698 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

My understanding is that when postgre= sql is shutdown it triggers a checkpoint which triggers the archiving of co= mpleted tx logs. Will the "pg_ctl stop" command wait for archivin= g to complete or is the act of archiving completely asynchronous from the s= hutdown process?

In my case, I WANT the pg_ctl command to hang= until all files are archived because immediately after I issue "pg_ct= l stop" I want to be able to unmount the disk that the archived logs a= re being copied to.

Thanks for any information,

Mitche= ll

--
Mitchell Bosecke, B.Sc.
Software Developer

FORCORP
= #101, 11710 Kingsway NW
Edmonton , AB, T5G 0X5

(o) 587.410.= 4067
(f) 780.453.3986
--047d7b3a8b1e274076050736d698--