Re: single user mode -P option is ignored - Mailing list pgsql-hackers

From Tom Lane
Subject Re: single user mode -P option is ignored
Date
Msg-id 10876.1545238783@sss.pgh.pa.us
Whole thread Raw
In response to single user mode -P option is ignored  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: single user mode -P option is ignored  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: single user mode -P option is ignored  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> some customer has PostgreSQL 9.5.5. He cannot to login to database due
> broken index
> When I use single mode against to this database I got a error
> start transaction
> could not open critical system index 2679

I can't reproduce this.  Removing file 2679 (pg_index_indexrelid_index)
from an otherwise-OK database leads to

    $ postgres --single busted
    FATAL:  could not open file "base/78215/2679": No such file or directory

as expected, but

    $ postgres --single -P busted

    PostgreSQL stand-alone backend 9.5.15
    backend> 

and all seems well, in particular I can successfully do

    backend> reindex index pg_index_indexrelid_index;

and then things are back to normal.

So either this is something we fixed since 9.5.5, or your summary
of the problem is missing many critical details.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Some memory allocations in gin fastupdate code are a bit brain dead
Next
From: Alvaro Herrera
Date:
Subject: Re: single user mode -P option is ignored