Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B30C82E0033 for ; Mon, 25 Feb 2008 11:41:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27538-01 for ; Mon, 25 Feb 2008 11:41:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 11E012E002F for ; Mon, 25 Feb 2008 11:41:20 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m1PFfCYg027253; Mon, 25 Feb 2008 10:41:13 -0500 (EST) To: "nabakumar salam" cc: pgsql-admin@postgresql.org Subject: Re: postgre suoer In-reply-to: References: Comments: In-reply-to "nabakumar salam" message dated "Mon, 25 Feb 2008 18:29:52 +0530" Date: Mon, 25 Feb 2008 10:41:12 -0500 Message-ID: <27252.1203954072@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/315 X-Sequence-Number: 28389 "nabakumar salam" writes: > I was expecting that it would not allow removing that super user rights as > it is the only super user in my DB. Superusers are assumed to be careful enough not to shoot themselves in the foot like that. I suggest not experimenting with things like "delete from pg_proc;" either ;-) > now my database is without any user with super user rights. > How do I create one now or get back the previous super user? Shut down the postmaster, start a standalone backend, create a superuser using CREATE USER, restart the postmaster. You're always super inside a standalone backend. regards, tom lane