File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1- <!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.59 2001/05/24 09:29:29 petere Exp $ -->
1+ <!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.60 2001/06/13 22:51:02 momjian Exp $ -->
22
33<chapter id="functions">
44 <title>Functions and Operators</title>
@@ -3306,6 +3306,13 @@ Not defined by this name. Implements the intersection operator '#'
33063306 <entry>masklen('192.168.1.5/24')</entry>
33073307 <entry>24</entry>
33083308 </row>
3309+ <row>
3310+ <entry>set_masklen(inet,integer)</entry>
3311+ <entry>inet</entry>
3312+ <entry>set netmask length for inet value</entry>
3313+ <entry>set_masklen('192.168.1.5/24',16)</entry>
3314+ <entry>192.168.1.5/16</entry>
3315+ </row>
33093316 <row>
33103317 <entry>netmask(inet)</entry>
33113318 <entry>inet</entry>
@@ -3342,7 +3349,9 @@ Not defined by this name. Implements the intersection operator '#'
33423349 All of the functions for <type>inet</type> can be applied to
33433350 <type>cidr</type> values as well. The <function>host</>(),
33443351 <function>text</>(), and <function>abbrev</>() functions are primarily
3345- intended to offer alternative display formats.
3352+ intended to offer alternative display formats. You can cast a text
3353+ field to inet using normal casting syntax: inet(fieldname) or
3354+ fieldname::inet.
33463355 </para>
33473356
33483357 <para>
You can’t perform that action at this time.
0 commit comments