Re: Is there a way to ask PostgreSQL for the name of the computer it's running on? - Mailing list pgsql-general

From aasat
Subject Re: Is there a way to ask PostgreSQL for the name of the computer it's running on?
Date
Msg-id 1340175474060-5713452.post@n5.nabble.com
Whole thread Raw
In response to Is there a way to ask PostgreSQL for the name of the computer it's running on?  (Rob Richardson <RDRichardson@rad-con.com>)
List pgsql-general
CREATE OR REPLACE FUNCTION get_hostname()
  RETURNS text AS
$BODY$use Sys::Hostname;
return hostname;$BODY$
  LANGUAGE plperlu VOLATILE;


--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Is-there-a-way-to-ask-PostgreSQL-for-the-name-of-the-computer-it-s-running-on-tp5712539p5713452.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Feature discussion: Should syntax errors abort a transaction?
Next
From: Chris Travers
Date:
Subject: Re: Feature discussion: Should syntax errors abort a transaction?