From ee844bb42632521c89497a2845079770b32a934e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 11 Aug 2017 16:40:56 -0400 Subject: [PATCH] doc: Add example for inet vs cidr difference Reported-by: kes-kes@yandex.ru --- doc/src/sgml/datatype.sgml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index af5daef7ab..5f881a0b74 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -3623,7 +3623,9 @@ SELECT person.name, holidays.num_weeks FROM person, holidays The essential difference between inet and cidr data types is that inet accepts values with nonzero bits to - the right of the netmask, whereas cidr does not. + the right of the netmask, whereas cidr does not. For + example, 192.168.0.1/24 is valid for inet + but not for cidr. -- 2.40.0