Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X6QmU-00054g-2u for pgsql-admin@arkaria.postgresql.org; Sun, 13 Jul 2014 20:53:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X6QmT-0006lR-II for pgsql-admin@arkaria.postgresql.org; Sun, 13 Jul 2014 20:53:57 +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 1X6QmS-0006lK-6Q for pgsql-admin@postgresql.org; Sun, 13 Jul 2014 20:53:56 +0000 Received: from mailout.easymail.ca ([64.68.200.169] helo=mailout4.easymail.ca) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X6QmN-0001rd-3x for pgsql-admin@postgresql.org; Sun, 13 Jul 2014 20:53:54 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout4.easymail.ca (Postfix) with ESMTP id 0DE56E03A for ; Sun, 13 Jul 2014 16:53:45 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mailout4.easymail.ca X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.000, BAYES_00=-2.599] Received: from mailout4.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout2.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X0hWavKH9QCk for ; Sun, 13 Jul 2014 16:53:44 -0400 (EDT) Received: from [192.168.4.16] (unknown [8.39.228.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mailout4.easymail.ca (Postfix) with ESMTPSA id 7452AE018 for ; Sun, 13 Jul 2014 16:53:44 -0400 (EDT) From: Scott Ribe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: stopping single-user standby Message-Id: Date: Sun, 13 Jul 2014 14:53:47 -0600 To: pgsql-admin Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) 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 Oops. I was setting up a clone of a db for testing purposes. Accidentally c= opied in a recovery.conf. Then ran a script I have which actually does some= maintenance by running pg in single-user, but of course the sql commands d= o not run and the script never terminates. So, yeah, I've now got pg in sta= ndby mode *and* single user. - Can't do a normal kill on the server, it doesn't respond to that. - Can't pg_ctl stop it because that doesn't work on a server running single= -user. - Can't pg_ctl promote it either. I'm sure I can kill -9 this one, because there's no activity (it cannot eve= n connect to the primary, because it's not reachable from here). But I'm ju= st wondering if there's any more graceful way out of this little fubar. (Ve= rsion is 9.3.4) --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin