Re: Retrieve ip client from postgres

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Mario A(dot) Soto Cordones" <mario_soto(at)venezolanadeavaluos(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Retrieve ip client from postgres
Date: 2004-11-05 23:44:44
Message-ID: 20041105234444.GA26745@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Nov 05, 2004 at 04:21:52PM -0400, Mario A. Soto Cordones wrote:

> How can i get the Client Host name/IP Address for the current
> connection(session). Is there any function or system table(view) which
> will these details.

In 8.0 you'll be able to use inet_client_addr(). I don't think you
could get this info in earlier versions, although I recall seeing
an user-defined function that somebody had written. Use a search
engine and see if anything comes up.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Goutam Paruchuri 2004-11-06 01:27:53 Re: Copy command and import - MS SQL Server to Postgres
Previous Message Alvaro Herrera 2004-11-05 22:52:56 Re: Converting number to words