Skip to content

Commit ee844bb

Browse files
committed
doc: Add example for inet vs cidr difference
Reported-by: [email protected]
1 parent fa65c8c commit ee844bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/datatype.sgml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3623,7 +3623,9 @@ SELECT person.name, holidays.num_weeks FROM person, holidays
36233623
<para>
36243624
The essential difference between <type>inet</type> and <type>cidr</type>
36253625
data types is that <type>inet</type> accepts values with nonzero bits to
3626-
the right of the netmask, whereas <type>cidr</type> does not.
3626+
the right of the netmask, whereas <type>cidr</type> does not. For
3627+
example, <literal>192.168.0.1/24</literal> is valid for <type>inet</type>
3628+
but not for <type>cidr</type>.
36273629
</para>
36283630

36293631
<tip>

0 commit comments

Comments
 (0)