pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Get client's IP
3+ messages / 3 participants
[nested] [flat]

* Get client's IP
@ 2002-12-30 20:01  Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>
  0 siblings, 1 reply; 3+ messages in thread

From: Ing. Gabriel Monsalvo @ 2002-12-30 20:01 UTC (permalink / raw)
  To: pgsql-admin

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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Get client's IP
@ 2003-01-04 11:08  Rajesh Kumar Mallah. <mallah@trade-india.com>
  parent: Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>
  0 siblings, 1 reply; 3+ messages in thread

From: Rajesh Kumar Mallah. @ 2003-01-04 11:08 UTC (permalink / raw)
  To: Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>; pgsql-admin


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.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Get client's IP
@ 2003-01-06 20:27  Robert Treat <xzilla@users.sourceforge.net>
  parent: Rajesh Kumar Mallah. <mallah@trade-india.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Robert Treat @ 2003-01-06 20:27 UTC (permalink / raw)
  To: Rajesh Kumar Mallah. <mallah@trade-india.com>; +Cc: Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>; pgsql-admin

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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-01-06 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-30 20:01 Get client's IP Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>
2003-01-04 11:08 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2003-01-06 20:27   ` Robert Treat <xzilla@users.sourceforge.net>

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