From: David Hartwig <daveh@insightdist.com>
To: Jorge Maturana <ateo@labsd.inf.utfsm.cl>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Current User
Date: Thu, 12 Nov 1998 16:52:26 -0500
Message-ID: <364B589A.1400E1B5@insightdist.com> (raw)
References: <199811112331.UAA12693@rauli.labsd.inf.utfsm.cl>
select CURRENT_USER;
-- or --
select usesysid from pg_user where usename = CURRENT_USER;
Jorge Maturana wrote:
> Hi,
>
> I want to have a table to manage a register of the modifications made to
> several tables by a group of users, that table should contain the name of the
> postgres user that made the modificaction, now, How can I get the name (or
> the user id) of the current user logged in?,there are some "pg_currentuser"
> table to make a select?
>
> I would thank any help.
>
> --
> Jorge Maturana Ortiz
> Laboratorio de Sistemas Distribuidos - Departamento de Informatica
> Universidad Tecnica Federico Santa Maria, Valparaiso - Chile
> mailto:ateo@labsd.inf.utfsm.cl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: daveh@insightdist.com, ateo@labsd.inf.utfsm.cl
Subject: Re: [SQL] Current User
In-Reply-To: <364B589A.1400E1B5@insightdist.com>
References: <199811112331.UAA12693@rauli.labsd.inf.utfsm.cl> <364B589A.1400E1B5@insightdist.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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