pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@gmail.com>
To: Dragan Matic <mlists@panforma.co.yu>
To: pgsql-admin@postgresql.org
Subject: Re: checking if user is connected as a superuser?
Date: Mon, 6 Jun 2005 13:04:05 +0200
Message-ID: <9e4684ce050606040423e9dfc0@mail.gmail.com> (raw)
In-Reply-To: <42A423C4.6070404@panforma.co.yu>
References: <42A423C4.6070404@panforma.co.yu>

On 6/6/05, Dragan Matic <mlists@panforma.co.yu> wrote:
> 
> Is there a way to check if user is a superuser for the given cluster?
> Thanks in advance
> 

select usesuper from pg_user where usename = CURRENT_USER;

depesz

view thread (3+ messages)  latest in thread

Message-ID: <9e4684ce050606040423e9dfc0@mail.gmail.com>
Permalink:  ../9e4684ce050606040423e9dfc0@mail.gmail.com/
Also on:    postgresql.org/message-id/9e4684ce050606040423e9dfc0@mail.gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: depesz@gmail.com, mlists@panforma.co.yu
  Subject: Re: checking if user is connected as a superuser?
  In-Reply-To: <9e4684ce050606040423e9dfc0@mail.gmail.com>
  References: <42A423C4.6070404@panforma.co.yu> <9e4684ce050606040423e9dfc0@mail.gmail.com>

* 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