Index: func.sgml
===================================================================
RCS file: /cvs/pgsql/pgsql/doc/src/sgml/func.sgml,v
retrieving revision 1.56
diff --unified -r1.56 func.sgml
--- func.sgml 2001/03/25 18:14:31 1.56
+++ func.sgml 2001/06/13 22:04:44
@@ -3214,6 +3214,13 @@
24
+ set_masklen(inet,integer)
+ inet
+ set netmask length for inet value
+ set_masklen('192.168.1.5/24',16)
+ 192.168.1.5/16
+
+
netmask(inet)
inet
construct netmask for network
@@ -3249,7 +3256,9 @@
All of the functions for inet can be applied to
cidr values as well. The host>(),
text>(), and abbrev>() functions are primarily
- intended to offer alternative display formats.
+ intended to offer alternative display formats. You can cast a text
+ field to inet using normal casting syntax: inet(fieldname) or
+ fieldname::inet.