pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedchecking if user is connected as a superuser?
3+ messages / 3 participants
[nested] [flat]
* checking if user is connected as a superuser?
@ 2005-06-06 10:21 Dragan Matic <mlists@panforma.co.yu>
0 siblings, 2 replies; 3+ messages in thread
From: Dragan Matic @ 2005-06-06 10:21 UTC (permalink / raw)
To: pgsql-admin
Is there a way to check if user is a superuser for the given cluster?
Thanks in advance
Dragan
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: checking if user is connected as a superuser?
@ 2005-06-06 11:04 hubert depesz lubaczewski <depesz@gmail.com>
parent: Dragan Matic <mlists@panforma.co.yu>
1 sibling, 0 replies; 3+ messages in thread
From: hubert depesz lubaczewski @ 2005-06-06 11:04 UTC (permalink / raw)
To: Dragan Matic <mlists@panforma.co.yu>; pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: checking if user is connected as a superuser?
@ 2005-06-07 17:25 Alvaro Herrera <alvherre@surnet.cl>
parent: Dragan Matic <mlists@panforma.co.yu>
1 sibling, 0 replies; 3+ messages in thread
From: Alvaro Herrera @ 2005-06-07 17:25 UTC (permalink / raw)
To: Dragan Matic <mlists@panforma.co.yu>; +Cc: pgsql-admin
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)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-06-07 17:25 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-06 10:21 checking if user is connected as a superuser? Dragan Matic <mlists@panforma.co.yu>
2005-06-06 11:04 ` hubert depesz lubaczewski <depesz@gmail.com>
2005-06-07 17:25 ` Alvaro Herrera <alvherre@surnet.cl>
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