type
INET
PostgreSQL INET represents IPv4 or IPv6 addresses with optional network prefix; host bits may be present. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
INETWorking Example
Example Snippetsql
SELECT host(INET '192.0.2.7/24');