From: Alvaro Herrera <alvherre@surnet.cl>
To: Dragan Matic <mlists@panforma.co.yu>
Cc: pgsql-admin@postgresql.org
Subject: Re: checking if user is connected as a superuser?
Date: Tue, 7 Jun 2005 13:25:43 -0400
Message-ID: <20050607172543.GF17902@surnet.cl> (raw)
In-Reply-To: <42A423C4.6070404@panforma.co.yu>
References: <42A423C4.6070404@panforma.co.yu>
On Mon, Jun 06, 2005 at 12:21:56PM +0200, Dragan Matic wrote:
> Is there a way to check if user is a superuser for the given cluster?
alvherre=# show is_superuser;
is_superuser
--------------
on
(1 fila)
alvherre=# select current_setting('is_superuser');
current_setting
-----------------
on
(1 fila)
--
Alvaro Herrera (<alvherre[a]surnet.cl>)
La web junta la gente porque no importa que clase de mutante sexual seas,
tienes millones de posibles parejas. Pon "buscar gente que tengan sexo con
ciervos incendiándose", y el computador dirá "especifique el tipo de ciervo"
(Jason Alexander)
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: alvherre@surnet.cl, mlists@panforma.co.yu
Subject: Re: checking if user is connected as a superuser?
In-Reply-To: <20050607172543.GF17902@surnet.cl>
References: <42A423C4.6070404@panforma.co.yu> <20050607172543.GF17902@surnet.cl>
* 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