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

From: aasat <satriani(at)veranet(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a way to ask PostgreSQL for the name of the computer it's running on?
Date: 2012-06-20 06:57:54
Message-ID: 1340175474060-5713452.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Travers 2012-06-20 07:24:29 Re: Feature discussion: Should syntax errors abort a transaction?
Previous Message Simon Riggs 2012-06-20 06:29:37 Re: Feature discussion: Should syntax errors abort a transaction?