↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / Network Address Functions And Operators

Computes the host mask for the address's network.

Reading PG 18current·documented in 24 of 27 versions, 7.4 to 20

Signatures & examples

hostmask ( inet ) → inet
Computes the host mask for the address's network.
hostmask(inet '192.168.23.20/30') → 0.0.0.3
Version history 2
  1. 12 → 13 changed
  2. 7.3 → 7.4 added

Definition snapshot: b7bd9cda · English manual source