Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7763c1

Browse files
committed
Docs for:
> >> inet(text), cidr(text): convert a text value into inet/cidr> >> set_masklen(inet): set masklen on the inet valueAlex Pilosov
1 parent1a6bb6d commitd7763c1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp