Re: A real puzzler: ANY way to recover? - Mailing list pgsql-admin

From David F. Skoll
Subject Re: A real puzzler: ANY way to recover?
Date
Msg-id 427A60A9.7080309@roaringpenguin.com
Whole thread Raw
In response to Re: A real puzzler: ANY way to recover?  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: REMOVE  (Samngan@telus.net)
unsubscribe  (Louisa Thue - Navarik <lthue@navarik.com>)
List pgsql-admin
Alvaro Herrera wrote:

> Connect in standalone mode?

Does not work.  Tom Lane replied with the only thing that does work,
which we independently discovered about 30 seconds before hearing from
Tom. :-)

The solution is to modify the PostgreSQL source code to skip the check,
and run the modified binary in standalone mode just to reset the
datallowconn flag to true.  Once we did that, we quit and started
the normal server to complete the maintenance work.

I recommend having a postgres single-user-mode command-line option
to disable the check, with a suitably stern warning in the man
page not to use it. :-)

Regards,

David.

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: A real puzzler: ANY way to recover?
Next
From: Tom Lane
Date:
Subject: Re: A real puzzler: ANY way to recover?