`inet` docs suggestion and possible bug report

2025-04-28 Thread Nathan Long
On https://www.postgresql.org/docs/current/datatype-net-types.html the opening paragraph says: > PostgreSQL offers data types to store IPv4, IPv6, and MAC addresses, as shown in Table 8.21 . It is better to u

Re: `inet` docs suggestion and possible bug report

2025-04-28 Thread Tom Lane
Nathan Long writes: > At least in the case of `inet`, another reason is for accurate comparison. > IPv4 and IPv6 both have shorthand textual representations; eg `127.1` = > `127.1.0.0`. Text storage would consider these unequal. I'm not sure how much we want to press that point, because AFAICS th