Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45f5eba

Browse files
author
Neil Conway
committed
Document the family() function (added during the 7.4 dev cycle but not
documented), and fix a typo.
1 parent a81b9d6 commit 45f5eba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.186 2004/02/05 22:54:36 joe Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.187 2004/02/22 04:14:06 neilc Exp $
33
PostgreSQL documentation
44
-->
55

@@ -5998,7 +5998,7 @@ SELECT TIMESTAMP 'now';
59985998
<row>
59995999
<entry> <literal>&gt;&gt;</literal> </entry>
60006000
<entry>contains</entry>
6001-
<entry><literal>inet'192.168.1/24' &gt;&gt; inet '192.168.1.5'</literal></entry>
6001+
<entry><literal>inet '192.168.1/24' &gt;&gt; inet '192.168.1.5'</literal></entry>
60026002
</row>
60036003
<row>
60046004
<entry> <literal>&gt;&gt;=</literal> </entry>
@@ -6096,6 +6096,13 @@ SELECT TIMESTAMP 'now';
60966096
<entry><literal>abbrev(cidr '10.1.0.0/16')</literal></entry>
60976097
<entry><literal>10.1/16</literal></entry>
60986098
</row>
6099+
<row>
6100+
<entry><literal><function>family</function>(<type>inet</type>)</literal></entry>
6101+
<entry><type>integer</type></entry>
6102+
<entry>extract family of address; <literal>4</literal> for IPv4,
6103+
<literal>6</literal> for IPv6</entry>
6104+
<entry><literal>family('::1')</literal></entry>
6105+
<entry><literal>6</literal></entry>
60996106
</tbody>
61006107
</tgroup>
61016108
</table>

0 commit comments

Comments
 (0)