pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Browne <cbbrowne@acm.org>
To: pgsql-sql@postgresql.org
Subject: Re: Get postgresql server ip address
Date: Tue, 08 Feb 2011 10:30:42 -0500
Message-ID: <87vd0uzgpp.fsf@cbbrowne.afilias-int.info> (raw)
References: <AANLkTi=+b=sAON_PuAFt4C+0TpA7C4=Z=+8ef7FTf3EQ@mail.gmail.com>

geramel.h@gmail.com (Gera Mel Handumon) writes:
> Is it possible to get postgresql server ip address using sql command?

You can get the IP address tied to a specific connection...  

See the function inet_server_port().

Note, however, that the server may have a multiplicity of IP addresses,
so this may only be a partial answer.
-- 
output = ("cbbrowne" "@" "gmail.com")
"A lot  of people come to  this newsgroup and  do nothing but complain
about Lisp.   I think maybe they  are such heavy complainers that they
think they read comp.lain.lisp." -- Erik Naggum



view thread (3+ messages)

Message-ID: <87vd0uzgpp.fsf@cbbrowne.afilias-int.info>
Permalink:  ../87vd0uzgpp.fsf@cbbrowne.afilias-int.info/
Also on:    postgresql.org/message-id/87vd0uzgpp.fsf@cbbrowne.afilias-int.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: Get postgresql server ip address
  In-Reply-To: <87vd0uzgpp.fsf@cbbrowne.afilias-int.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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