From: Robert Treat <xzilla@users.sourceforge.net>
To: Rajesh Kumar Mallah. <mallah@trade-india.com>
Cc: Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>
Cc: pgsql-admin@postgresql.org
Subject: Re: Get client's IP
Date: 06 Jan 2003 15:27:32 -0500
Message-ID: <1041884852.15456.116.camel@camel> (raw)
In-Reply-To: <200301041638.10704.mallah@trade-india.com>
References: <00a301c2b03e$450e2110$4d00a8c0@77>
<200301041638.10704.mallah@trade-india.com>
AFAIK there is no such function. I think you could create one in C by
look at both the semantics of pggetusername and the code that captures
connection ips for purpose of writing to the log files.
Robert Treat
On Sat, 2003-01-04 at 06:08, Rajesh Kumar Mallah. wrote:
>
> I had asked the same question few months back but did not get any
> response :-(
>
>
> mallah.
>
> On Tuesday 31 December 2002 01:31 am, Ing. Gabriel Monsalvo wrote:
> > Hi!
> >
> > i'm actually make and audit function for use with a trigger, in this
> > function i want to store in a table the client's ip address, there is any
> > postgresql's function to obtain it? like getpgusername o similar?
> >
> > thanks in adavance...
> >
> >
> > Gabriel.
>
> --
> Rajesh Kumar Mallah,
> Project Manager (Development)
> Infocom Network Limited, New Delhi
> phone: +91(11)6152172 (221) (L) ,9811255597 (M)
>
> Visit http://www.trade-india.com ,
> India's Leading B2B eMarketplace.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
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: xzilla@users.sourceforge.net, mallah@trade-india.com, gmonsalvo@rentastucuman.gov.ar
Subject: Re: Get client's IP
In-Reply-To: <1041884852.15456.116.camel@camel>
References: <00a301c2b03e$450e2110$4d00a8c0@77> <200301041638.10704.mallah@trade-india.com> <1041884852.15456.116.camel@camel>
* 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