dbTalk Databases Forums  

Retrieve ip client from postgres

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Retrieve ip client from postgres in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mario A. Soto Cordones
 
Posts: n/a

Default Retrieve ip client from postgres - 11-05-2004 , 02:21 PM






Hi,
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.

Thank





---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #2  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: Retrieve ip client from postgres - 11-05-2004 , 05:44 PM






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

Quote:
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/

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #3  
Old   
Mario A. Soto Cordones
 
Posts: n/a

Default Re: Retrieve ip client from postgres - 11-06-2004 , 09:02 AM



OK
thank you

Quote:
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/

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.