From: Scott Ribe <scott_ribe@elevated-dev.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: stopping single-user standby
Date: Sun, 13 Jul 2014 14:53:47 -0600
Message-ID: <EC9A686C-950B-4E8D-9E0A-08D1639398C3@elevated-dev.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Oops. I was setting up a clone of a db for testing purposes. Accidentally copied 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 do not run and the script never terminates. So, yeah, I've now got pg in standby 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 even connect to the primary, because it's not reachable from here). But I'm just wondering if there's any more graceful way out of this little fubar. (Version is 9.3.4)
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: scott_ribe@elevated-dev.com
Subject: Re: stopping single-user standby
In-Reply-To: <EC9A686C-950B-4E8D-9E0A-08D1639398C3@elevated-dev.com>
References: <EC9A686C-950B-4E8D-9E0A-08D1639398C3@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox