From gmonsalvo@rentastucuman.gov.ar Mon Dec 30 20:00:59 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7B203475921 for ; Mon, 30 Dec 2002 15:00:59 -0500 (EST) Received: from smtp5.arnet.com.ar (smtp5.arnet.com.ar [200.45.191.23]) by postgresql.org (Postfix) with SMTP id 384F64758DC for ; Mon, 30 Dec 2002 15:00:58 -0500 (EST) Received: (qmail 18949 invoked from network); 30 Dec 2002 19:59:24 -0000 Received: ThePolice Version 0.02 by GCM Received: from unknown (HELO 77) (200.45.224.7) by smtp5.arnet.com.ar with SMTP; 30 Dec 2002 19:59:24 -0000 Message-ID: <00a301c2b03e$450e2110$4d00a8c0@77> From: "Ing. Gabriel Monsalvo" To: Subject: Get client's IP Date: Mon, 30 Dec 2002 17:01:40 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A0_01C2B025.1F76E7C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/322 X-Sequence-Number: 6817 This is a multi-part message in MIME format. ------=_NextPart_000_00A0_01C2B025.1F76E7C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! i'm actually make and audit function for use with a trigger, in this functi= on i want to store in a table the client's ip address, there is any postgre= sql's function to obtain it? like getpgusername o similar? thanks in adavance... Gabriel. ------=_NextPart_000_00A0_01C2B025.1F76E7C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
 
i'm actually make and audit function for u= se with a=20 trigger, in this function i want to store in a table the client's ip addres= s,=20 there is any postgresql's function to obtain it? like getpgusername o=20 similar?
 
thanks in adavance...
 
 
Gabriel.
------=_NextPart_000_00A0_01C2B025.1F76E7C0-- From mallah@trade-india.com Sat Jan 4 11:03:16 2003 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 77A5F475C15 for ; Sat, 4 Jan 2003 06:03:16 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 5140247590C for ; Sat, 4 Jan 2003 06:03:12 -0500 (EST) Received: (qmail 7927 invoked from network); 4 Jan 2003 10:56:35 -0000 Received: from unknown (HELO system67.trade-india-local.com) (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 4 Jan 2003 10:56:35 -0000 From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: "Ing. Gabriel Monsalvo" , Subject: Re: Get client's IP Date: Sat, 4 Jan 2003 16:38:10 +0530 User-Agent: KMail/1.5 References: <00a301c2b03e$450e2110$4d00a8c0@77> In-Reply-To: <00a301c2b03e$450e2110$4d00a8c0@77> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200301041638.10704.mallah@trade-india.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/30 X-Sequence-Number: 6872 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. From xzilla@users.sourceforge.net Mon Jan 6 20:27:35 2003 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