Getting PID of current logged user - Mailing list pgsql-sql

From Roberto Mello
Subject Getting PID of current logged user
Date
Msg-id 20020605184030.GC1307@cc.usu.edu
Whole thread Raw
List pgsql-sql
Hi all,

On http://www.postgresql.org/idocs/index.php?monitoring-stats.html I found
pg_stat_get_backend_userid(integer) that will give me the user id of the
current logged in user. But I need to pass the oid of the backend.

I see a function to return the oid of all backends, but how do I find out
the oid of _my_ backend (say I'm executing this in a PL/pgSQL function)?

Thanks,

-Roberto

-- 
+----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU -
http://www.brasileiro.net/      http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer    
 


pgsql-sql by date:

Previous
From: Roberto Mello
Date:
Subject: extract and variables in PL/pgSQL
Next
From: Richard Poole
Date:
Subject: Re: Indexing Metaphone?