From: Peter Eisentraut Date: Fri, 11 Aug 2017 20:40:56 +0000 (-0400) Subject: doc: Add example for inet vs cidr difference X-Git-Tag: REL_10_BETA4~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee844bb42632521c89497a2845079770b32a934e;p=postgresql doc: Add example for inet vs cidr difference Reported-by: kes-kes@yandex.ru --- 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.