Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6KKn4a09844 for ; Fri, 20 Jul 2001 16:49:04 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f6KKmOC04934; Fri, 20 Jul 2001 16:48:24 -0400 (EDT) To: "Fareed M. Zaffar" cc: pgsql-admin@postgresql.org Subject: Re: In-reply-to: <995652468.3b5873741f0ed@login.cs.duke.edu> References: <995652468.3b5873741f0ed@login.cs.duke.edu> Comments: In-reply-to "Fareed M. Zaffar" message dated "Fri, 20 Jul 2001 14:07:48 -0400" Date: Fri, 20 Jul 2001 16:48:24 -0400 Message-ID: <4931.995662104@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200107/116 X-Sequence-Number: 1874 "Fareed M. Zaffar" 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