How to get current user

From: guillermo(at)gnsis(dot)net (Guillermo)
To: pgsql-novice(at)postgresql(dot)org
Subject: How to get current user
Date: 2004-11-16 20:28:14
Message-ID: c051570f.0411161228.5724ba0b@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

How can I get in a PL/pgSQL function, the current user name? I want to
restrict updating a field if the user is not a Superuser.

Thanx,
Guillermo

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Terry Lee Tucker 2004-11-16 21:18:13 Re: How to get current user
Previous Message Bryan Irvine 2004-11-16 19:15:01 Re: PHP - Tutorial