
This postgresql module provides several data types which can contain single ipv4 or ipv6 addresses or a range of such addresses.
ip4r supports these data types:
ip4: ipv4 address '#.#.#.#'
ip4r: ipv4 range '#.#.#.#-#.#.#.#' or '#.#.#.#/#' or '#.#.#.#'
ip6: ipv6 address 'xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx'
ip6r: ipv6 range '#-#' or '#/#' or '#'
ipaddress: ipv4 or ipv6 address
iprange: ipv4 or ipv6 range
while postgresql already has built-in types 'inet' and 'cidr', the authors of this module found that they had a number of requirements that were not addressed by the built-in types.