pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed(no subject)
2+ messages / 2 participants
[nested] [flat]
* (no subject)
@ 2001-07-20 18:07 Fareed M. Zaffar <fareed@cs.duke.edu>
0 siblings, 1 reply; 2+ messages in thread
From: Fareed M. Zaffar @ 2001-07-20 18:07 UTC (permalink / raw)
To: pgsql-admin
hi,
i am sorry if this seems like a silly question but i managed to somehow remove
the superuser priviliges from my super user...i was experimenting with
pg_shadow and now i cant change it back. Is there a way to reassign superuser
priviliges to a user since right now there is no one.
fareed
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re:
@ 2001-07-20 20:48 Tom Lane <tgl@sss.pgh.pa.us>
parent: Fareed M. Zaffar <fareed@cs.duke.edu>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-07-20 20:48 UTC (permalink / raw)
To: Fareed M. Zaffar <fareed@cs.duke.edu>; +Cc: pgsql-admin
"Fareed M. Zaffar" <fareed@cs.duke.edu> writes:
> i am sorry if this seems like a silly question but i managed to
> somehow remove the superuser priviliges from my super user...i was
> experimenting with pg_shadow and now i cant change it back. Is there a
> way to reassign superuser priviliges to a user since right now there
> is no one.
Oops :-(. It *might* work to shut down the postmaster, start a
standalone backend, and do an UPDATE on pg_shadow in the standalone
backend. I'm not sure whether the permission checks are disabled in
standalone mode (if not, perhaps they should be --- comments anyone?).
Otherwise, I think your choices are (a) hack the source code to let
you do the above, or (b) dump, initdb, reload.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-07-20 20:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20 18:07 Fareed M. Zaffar <fareed@cs.duke.edu>
2001-07-20 20:48 ` Re: Tom Lane <tgl@sss.pgh.pa.us>
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