diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-11 16:40:56 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-08-11 16:40:56 -0400 |
commit | ee844bb42632521c89497a2845079770b32a934e (patch) | |
tree | 4726cab965c2ffb5bb99e4db3f8752da310227cb | |
parent | fa65c8c73cb21ab3154db2f0f291227ba901c996 (diff) | |
download | postgresql-ee844bb42632521c89497a2845079770b32a934e.tar.gz postgresql-ee844bb42632521c89497a2845079770b32a934e.zip |
doc: Add example for inet vs cidr difference
Reported-by: kes-kes@yandex.ru
-rw-r--r-- | doc/src/sgml/datatype.sgml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index af5daef7ab2..5f881a0b74b 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 <para> The essential difference between <type>inet</type> and <type>cidr</type> data types is that <type>inet</type> accepts values with nonzero bits to - the right of the netmask, whereas <type>cidr</type> does not. + the right of the netmask, whereas <type>cidr</type> does not. For + example, <literal>192.168.0.1/24</literal> is valid for <type>inet</type> + but not for <type>cidr</type>. </para> <tip> |