Re: function to return pg_user.usesysid - Mailing list pgsql-hackers

From Neil Conway
Subject Re: function to return pg_user.usesysid
Date
Msg-id 1044653454.694.1.camel@tokyo
Whole thread Raw
In response to function to return pg_user.usesysid  ("Dr. Ernst Molitor" <molitor@uni-bonn.de>)
Responses Re: function to return pg_user.usesysid
List pgsql-hackers
On Fri, 2003-02-07 at 07:03, Dr. Ernst Molitor wrote:
> Hm, by the way, what about adding a function like current_userid to the
> core functionality of PostgreSQL?

What exactly would this do that couldn't be done by just querying
pg_user directly?

SELECT usesysid FROM pg_user WHERE usename = CURRENT_USER;

Cheers,

Neil
-- 
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC





pgsql-hackers by date:

Previous
From: greg@turnstep.com
Date:
Subject: Re: PGP signing releases
Next
From: Kevin Brown
Date:
Subject: Re: function to return pg_user.usesysid