Skip to main content
Skip to main content

Overview

IP data types store IP addresses in a binary format, which is faster and more space-efficient for querying compared to storing them as strings. There are two supported IP data types:

  • IPv4: It stores IPv4 addresses as a 4-byte binary value. It is used in conjunction with the ipv4_* family of functions.
  • IPv6: It stores IPv6 addresses as a 16-byte binary value. It is used in conjunction with the ipv6_* family of functions.