Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4WGz-0006fK-Bj for pgsql-admin@arkaria.postgresql.org; Wed, 31 Jul 2013 13:17:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4WGy-0001mX-Ql for pgsql-admin@arkaria.postgresql.org; Wed, 31 Jul 2013 13:17:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4WGx-0001lA-DI for pgsql-admin@postgresql.org; Wed, 31 Jul 2013 13:16:59 +0000 Received: from ex07htca01.uni-graz.at ([143.50.13.79]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4WGq-0007u3-IA for pgsql-admin@postgresql.org; Wed, 31 Jul 2013 13:16:59 +0000 Received: from ex07htca03.pers.ad.uni-graz.at (2002:8f32:d55::8f32:d55) by ex07htca01.pers.ad.uni-graz.at (2002:8f32:d4f::8f32:d4f) with Microsoft SMTP Server (TLS) id 8.3.298.1; Wed, 31 Jul 2013 15:16:44 +0200 Received: from [192.168.2.112] (143.50.203.87) by ex07htca03.pers.ad.uni-graz.at (143.50.13.85) with Microsoft SMTP Server (TLS) id 8.3.298.1; Wed, 31 Jul 2013 15:16:44 +0200 Message-ID: <51F90E3B.6030604@uni-graz.at> Date: Wed, 31 Jul 2013 15:16:43 +0200 From: =?ISO-8859-1?Q?J=FCrgen_Fuchsberger?= Organization: Wegener Center for Climate and Global Change User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130704 Icedove/17.0.7 MIME-Version: 1.0 To: Subject: Problem: pg_ctl does not not stop postgres properly even with immediate option X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EKpi3V1j1mhpb6Wh3MkirUH0SNINP1RJL" X-Pg-Spam-Score: -4.1 (----) 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 --EKpi3V1j1mhpb6Wh3MkirUH0SNINP1RJL Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, I am on a Debian wheezy system with postgresql 9.1 installed. I have a hot standby configuration with the standby server doing the job of taking backups of the database. For this purpose I stop the database, start rsync, then start the DB again. This afternoon I did some tests and found that postgres did not stop as I expected using > /etc/init.d/postgresql stop so I tried > pg_ctlcluster --force 9.1 main stop Still without success, next: > pg_ctlcluster 9.1 main stop -- -m immediate Stopped the main postgres process but the writer process was still runnin= g: > ps -ef | grep postgres postgres 14228 14224 0 14:34 ? 00:00:03 postgres: writer process wegnet 28059 22011 0 12:48 pts/0 00:00:00 tail -f /var/log/postgresql/postgresql-9.1-main.log Also pg_ctlcluster exit status was 0 which is not helpful in such a situation. One note: During all this the server was under heavy load recovering lots of wal files. Any ideas? Best, Juergen --EKpi3V1j1mhpb6Wh3MkirUH0SNINP1RJL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREIAAYFAlH5DjsACgkQ4RNsce5/DgBXbgD/TWuDnHoUkPFpvRtutdGown13 qiuGO4TK0YuRHnQCew4A/ih1VHNB0gJOQvFA5FquK9ogiy0EbsBoORROA4DNG8V4 =Cb7k -----END PGP SIGNATURE----- --EKpi3V1j1mhpb6Wh3MkirUH0SNINP1RJL--