Re: Is there a way to ask PostgreSQL for the name of the computer it's running on?
В списке pgsql-general по дате отправления:
| От | Guillaume Lelarge |
|---|---|
| Тема | Re: Is there a way to ask PostgreSQL for the name of the computer it's running on? |
| Дата | |
| Msg-id | 1339710224.2042.13.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Is there a way to ask PostgreSQL for the name of the computer it's running on? (Rob Richardson <RDRichardson@rad-con.com>) |
| Ответы |
Re: Is there a way to ask PostgreSQL for the name of the
computer it's running on?
|
| Список | pgsql-general |
On Thu, 2012-06-14 at 04:33 +0000, Rob Richardson wrote: > My customer has 3 computers. The PostgreSQL service could be running on either of two of them. There is currently noway in our system to determine which one it is running on. The third computer sometimes needs to know which of the othertwo computers is active. It would be enough to know which computer is running the PostgreSQL service. Is the nameof the server available in a PostgreSQL database, so that it could be retrieved using a query? > You can have its IP address, but not its name, unless you write a C or PL/perlU function. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера