summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-08-11 20:40:56 +0000
committerPeter Eisentraut2017-08-11 20:40:56 +0000
commitee844bb42632521c89497a2845079770b32a934e (patch)
tree4726cab965c2ffb5bb99e4db3f8752da310227cb
parentfa65c8c73cb21ab3154db2f0f291227ba901c996 (diff)
doc: Add example for inet vs cidr difference
Reported-by: [email protected]
-rw-r--r--doc/src/sgml/datatype.sgml4
1 files changed, 3 insertions, 1 deletions
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
<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>