pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Krishnendra Nandi <krishnendra.nandi@hewitt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Rule for updating ipaddress on insertion
Date: Thu, 12 Jan 2006 00:07:05 -0500
Message-ID: <1282.1137042425@sss.pgh.pa.us> (raw)
In-Reply-To: <OF85193D0B.E183FB07-ON652570F3.002B80FE-652570F3.00311D70@hewitt.com>
References: <OF85193D0B.E183FB07-ON652570F3.002B80FE-652570F3.00311D70@hewitt.com>

"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



view thread (3+ messages)  latest in thread

Message-ID: <1282.1137042425@sss.pgh.pa.us>
Permalink:  ../1282.1137042425@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1282.1137042425@sss.pgh.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, krishnendra.nandi@hewitt.com
  Subject: Re: Rule for updating ipaddress on insertion
  In-Reply-To: <1282.1137042425@sss.pgh.pa.us>
  References: <OF85193D0B.E183FB07-ON652570F3.002B80FE-652570F3.00311D70@hewitt.com> <1282.1137042425@sss.pgh.pa.us>

* 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