↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

inet_server_addr

Read the PG 18 manual

Returns the IP address on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket.

Reading PG 18current·documented in 23 of 27 versions, 8.0 to 20

Signatures & examples

inet_server_addr () → inet
Returns the IP address on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket.
Version history 2
  1. 12 → 13 changed
  2. 7.4 → 8.0 added

Definition snapshot: b7bd9cda · English manual source