doc: Add example for inet vs cidr difference
authorPeter Eisentraut
Fri, 11 Aug 2017 20:40:56 +0000 (16:40 -0400)
committerPeter Eisentraut
Fri, 11 Aug 2017 20:40:56 +0000 (16:40 -0400)
Reported-by: [email protected]
doc/src/sgml/datatype.sgml

index af5daef7ab2fb4142d4bfcf5ac957b2711bab1f5..5f881a0b74bac88a3beb27363e892fab1b2e96b0 100644 (file)
@@ -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.