Docs for:
authorBruce Momjian
Wed, 13 Jun 2001 22:51:02 +0000 (22:51 +0000)
committerBruce Momjian
Wed, 13 Jun 2001 22:51:02 +0000 (22:51 +0000)
> >> inet(text), cidr(text): convert a text value into inet/cidr
> >> set_masklen(inet): set masklen on the inet value

Alex Pilosov

doc/src/sgml/func.sgml

index c80ab6cf7485282cd37e87214d0c08e1661c6999..253e920d9ffb76e4aca8f6e3d68bdecdfc886b7c 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  Functions and Operators
@@ -3306,6 +3306,13 @@ Not defined by this name. Implements the intersection operator '#'
    masklen('192.168.1.5/24')
    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
@@ -3342,7 +3349,9 @@ Not defined by this name. Implements the intersection operator '#'
     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.