PostgreSQL/Postgre SQL/Inet Address

Материал из SQL эксперт
Версия от 13:13, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

inet address of the local connection

   <source lang="sql">

postgres=# -- inet address of the local connection postgres=# select inet_server_addr();

inet_server_addr

127.0.0.1

(1 row) postgres=#

      </source>
   
  


Inet address of the remote connection

   <source lang="sql">

postgres=# postgres=# postgres=# -- inet address of the remote connection postgres=# select inet_client_addr();

inet_client_addr

127.0.0.1

(1 row) postgres=#

      </source>