Re: checking if user is connected as a superuser?

From: hubert depesz lubaczewski <depesz(at)gmail(dot)com>
To: Dragan Matic <mlists(at)panforma(dot)co(dot)yu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: checking if user is connected as a superuser?
Date: 2005-06-06 11:04:05
Message-ID: 9e4684ce050606040423e9dfc0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 6/6/05, Dragan Matic <mlists(at)panforma(dot)co(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rodolfo Baselli 2005-06-06 15:33:04 Re: RAID0 vs RAID1 vs RAID?
Previous Message Dragan Matic 2005-06-06 10:21:56 checking if user is connected as a superuser?