pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to determine the currently logged on username
2+ messages / 2 participants
[nested] [flat]

* How to determine the currently logged on username
@ 2003-07-18 13:41  Chris Travers <chris@travelamericas.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Chris Travers @ 2003-07-18 13:41 UTC (permalink / raw)
  To: pgsql-sql

Hi all;

I will be writing a stored proceedure that will allow a currently logged 
in user to change his/her password.  The function needs to be only able 
to change the password of the currently logged in user, so it will only 
take a varchar() argument and needs to look up the username of the 
currently logged in user.  How do I do this?  Any ideas?

Best Wishes,
Chris Travers





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to determine the currently logged on username
@ 2003-07-18 14:25  Richard Huxton <richardh@archonet.com>
  parent: Chris Travers <chris@travelamericas.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Richard Huxton @ 2003-07-18 14:25 UTC (permalink / raw)
  To: Chris Travers <chris@travelamericas.com>; pgsql-sql

On Friday 18 July 2003 14:41, Chris Travers wrote:
> Hi all;
>
> I will be writing a stored proceedure that will allow a currently logged
> in user to change his/her password.  The function needs to be only able
> to change the password of the currently logged in user, so it will only
> take a varchar() argument and needs to look up the username of the
> currently logged in user.  How do I do this?  Any ideas?

select CURRENT_USER;

-- 
  Richard Huxton
  Archonet Ltd



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-07-18 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-18 13:41 How to determine the currently logged on username Chris Travers <chris@travelamericas.com>
2003-07-18 14:25 ` Richard Huxton <richardh@archonet.com>

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