X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E17CA5283D for ; Mon, 6 Jun 2005 08:04:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44176-06 for ; Mon, 6 Jun 2005 11:04:04 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by svr1.postgresql.org (Postfix) with ESMTP id 9F41A52834 for ; Mon, 6 Jun 2005 08:04:02 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 69so1152586wra for ; Mon, 06 Jun 2005 04:04:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=gOve1N0XbYMg0meXPEntb4zrDFtmLkATuHFW7E1OXL5VC86ls8QhdxM0byKdlONc31j3XzPF+nCtHU8cV669d0qI8dNK3NDkn33Wc0oNXsSZpfhDh8zpTpzZOzpLLTu+ZpoN3g0Vfqxmp7K6DTYy9vQ1TVVPnhU41luiw2AuHR4= Received: by 10.54.71.17 with SMTP id t17mr3086504wra; Mon, 06 Jun 2005 04:04:05 -0700 (PDT) Received: by 10.54.13.24 with HTTP; Mon, 6 Jun 2005 04:04:05 -0700 (PDT) Message-ID: <9e4684ce050606040423e9dfc0@mail.gmail.com> Date: Mon, 6 Jun 2005 13:04:05 +0200 From: hubert depesz lubaczewski Reply-To: hubert depesz lubaczewski To: Dragan Matic , pgsql-admin@postgresql.org Subject: Re: checking if user is connected as a superuser? In-Reply-To: <42A423C4.6070404@panforma.co.yu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11336_15285453.1118055845384" References: <42A423C4.6070404@panforma.co.yu> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.12 tagged_above=0 required=5 tests=HTML_50_60, HTML_MESSAGE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/25 X-Sequence-Number: 17780 ------=_Part_11336_15285453.1118055845384 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 6/6/05, Dragan Matic wrote: >=20 > Is there a way to check if user is a superuser for the given cluster? > Thanks in advance >=20 select usesuper from pg_user where usename =3D CURRENT_USER; depesz ------=_Part_11336_15285453.1118055845384 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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?
Th= anks in advance

select usesuper from pg_user where usename =3D CURRENT_USER;

depesz
------=_Part_11336_15285453.1118055845384--