Re: Rule for updating ipaddress on insertion - Mailing list pgsql-admin

From Tom Lane
Subject Re: Rule for updating ipaddress on insertion
Date
Msg-id 1282.1137042425@sss.pgh.pa.us
Whole thread Raw
In response to Rule for updating ipaddress on insertion  ("Krishnendra Nandi" <krishnendra.nandi@hewitt.com>)
List pgsql-admin
"Krishnendra Nandi" <krishnendra.nandi@hewitt.com> writes:
> Could you please tell me how do i record information as to which ip
> address the connection was when doing an update/insert in postgres..
> I need a trigger which would capture this information

In recent PG releases this info is available, see "Session Information
Functions" here:
http://www.postgresql.org/docs/8.0/static/functions-info.html

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: like vs =
Next
From: Tom Lane
Date:
Subject: Re: strange system columns