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

Поиск
Список
Период
Сортировка
От aasat
Тема Re: Is there a way to ask PostgreSQL for the name of the computer it's running on?
Дата
Msg-id 1340175474060-5713452.post@n5.nabble.com
обсуждение исходный текст
Ответ на Is there a way to ask PostgreSQL for the name of the computer it's running on?  (Rob Richardson <RDRichardson@rad-con.com>)
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Feature discussion: Should syntax errors abort a transaction?
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Feature discussion: Should syntax errors abort a transaction?