Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1BA2B4760B7 for ; Mon, 6 Jan 2003 15:27:35 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 834CC475BC3 for ; Mon, 6 Jan 2003 15:27:34 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h06KiC6P029904; Mon, 6 Jan 2003 15:44:12 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h06KRWj29424; Mon, 6 Jan 2003 15:27:32 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XX5JZWAR; Mon, 6 Jan 2003 15:27:32 -0500 Subject: Re: Get client's IP From: Robert Treat To: "Rajesh Kumar Mallah." Cc: "Ing. Gabriel Monsalvo" , pgsql-admin@postgresql.org In-Reply-To: <200301041638.10704.mallah@trade-india.com> References: <00a301c2b03e$450e2110$4d00a8c0@77> <200301041638.10704.mallah@trade-india.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 06 Jan 2003 15:27:32 -0500 Message-Id: <1041884852.15456.116.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/39 X-Sequence-Number: 6881 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