pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <jconway2@home.com>
To: Postgres SQL list <pgsql-sql@postgresql.org>
Subject: current host and dbname info
Date: Sat, 27 Jan 2001 21:40:27 -0800
Message-ID: <024c01c088ec$d200a190$0705a8c0@jecw2k1> (raw)
References: <Pine.LNX.4.30.0101141648030.977-100000@peter.localdomain>

Hi,

I've been searching the docs and been unable to find the answer to this --
is there a way to get the current database server host tcpip address,
postmaster port, and database name from a SQL query?

I'd like to access those from within a plpgsql function without having to
create and populate some sort of identification table.

Thanks,

Joe





Message-ID: <024c01c088ec$d200a190$0705a8c0@jecw2k1>
Permalink:  ../024c01c088ec$d200a190$0705a8c0@jecw2k1/
Also on:    postgresql.org/message-id/024c01c088ec$d200a190$0705a8c0@jecw2k1

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jconway2@home.com
  Subject: Re: current host and dbname info
  In-Reply-To: <024c01c088ec$d200a190$0705a8c0@jecw2k1>
  References: <Pine.LNX.4.30.0101141648030.977-100000@peter.localdomain> <024c01c088ec$d200a190$0705a8c0@jecw2k1>

* 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