Re: Is there anyway to retrieve server name and/or ip from query

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Is there anyway to retrieve server name and/or ip from query
Дата
Msg-id 200507291400.j6TE0Tl24281@candle.pha.pa.us
обсуждение исходный текст
Ответ на Is there anyway to retrieve server name and/or ip from query  (Chris Hoover <revoohc@gmail.com>)
Список pgsql-admin
Chris Hoover wrote:
> Subject pretty much says it all.  Is there a way in a sql query to
> have it return the server name and/or the server ip address of the
> PostgreSQL server?

8.0 has such informix via functions:

    test=> \df *server*
                               List of functions
       Schema   |       Name       | Result data type | Argument data types
    ------------+------------------+------------------+---------------------
     pg_catalog | inet_server_addr | inet             |
     pg_catalog | inet_server_port | integer          |
    (2 rows)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: start postgresql8 with -o "-i" option
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Is there anyway to retrieve server name and/or ip from query