pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: nabakumar salam <salamnabakumar@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgre suoer
Date: Mon, 25 Feb 2008 10:41:12 -0500
Message-ID: <27252.1203954072@sss.pgh.pa.us> (raw)
In-Reply-To: <f3c948690802250459p2dbc96a0le9ea8e4ffe8de5f1@mail.gmail.com>
References: <f3c948690802250459p2dbc96a0le9ea8e4ffe8de5f1@mail.gmail.com>

"nabakumar salam" <salamnabakumar@gmail.com> 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



view thread (2+ messages)

Message-ID: <27252.1203954072@sss.pgh.pa.us>
Permalink:  ../27252.1203954072@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27252.1203954072@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, salamnabakumar@gmail.com
  Subject: Re: postgre suoer
  In-Reply-To: <27252.1203954072@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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