Re: Help: Dumb newbie locked himself out! - Mailing list pgsql-novice

From Tom Lane
Subject Re: Help: Dumb newbie locked himself out!
Date
Msg-id 16415.1026935549@sss.pgh.pa.us
Whole thread Raw
In response to Re: Help: Dumb newbie locked himself out!  ("Balazs Wellisch" <balazs@bwellisch.com>)
List pgsql-novice
"Balazs Wellisch" <balazs@bwellisch.com> writes:
> UPDATE pg_shadow SET usesuper = true WHERE usename = 'postgres';
> ERROR:  pg_shadow: Permission denied.

Hmm.  I forgot that you'd need usecatupd privilege to do that.

> Any other suggestions? I appreciate your help.

I think you may be stuck :-( ... unless you want to risk editing the
pg_shadow file with a binary-file editor.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Balazs Wellisch"
Date:
Subject: Re: Help: Dumb newbie locked himself out!
Next
From: Søren Neigaard
Date:
Subject: How do I only allow one group access to my database