↑↓ 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_client_port

Read the PG 18 manual

Returns the IP port number of the current client, 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_client_port () → integer
Returns the IP port number of the current client, or NULL if the current connection is via a Unix-domain socket.
Version history 3
  1. 12 → 13 changed
  2. 8.0 → 8.1 changed
  3. 7.4 → 8.0 added

Definition snapshot: b7bd9cda · English manual source