Re: Rule for updating ipaddress on insertion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Krishnendra Nandi" <krishnendra(dot)nandi(at)hewitt(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Rule for updating ipaddress on insertion
Date: 2006-01-12 05:07:05
Message-ID: 1282.1137042425@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Krishnendra Nandi" <krishnendra(dot)nandi(at)hewitt(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-01-12 05:11:16 Re: strange system columns
Previous Message Tom Lane 2006-01-12 05:02:15 Re: like vs =