From 45f5eba90b8dfbd966784b836fface3390615a43 Mon Sep 17 00:00:00 2001
From: Neil Conway <neilc@samurai.com>
Date: Sun, 22 Feb 2004 04:14:06 +0000
Subject: [PATCH] Document the family() function (added during the 7.4 dev
 cycle but not documented), and fix a typo.

---
 doc/src/sgml/func.sgml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 91ab4b12ae3..d047d045bd2 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.186 2004/02/05 22:54:36 joe Exp $
+$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.187 2004/02/22 04:14:06 neilc Exp $
 PostgreSQL documentation
 -->
 
@@ -5998,7 +5998,7 @@ SELECT TIMESTAMP 'now';
        <row>
 	<entry> <literal>&gt;&gt;</literal> </entry>
 	<entry>contains</entry>
-	<entry><literal>inet'192.168.1/24' &gt;&gt; inet '192.168.1.5'</literal></entry>
+	<entry><literal>inet '192.168.1/24' &gt;&gt; inet '192.168.1.5'</literal></entry>
        </row>
        <row>
 	<entry> <literal>&gt;&gt;=</literal> </entry>
@@ -6096,6 +6096,13 @@ SELECT TIMESTAMP 'now';
 	<entry><literal>abbrev(cidr '10.1.0.0/16')</literal></entry>
 	<entry><literal>10.1/16</literal></entry>
        </row>
+       <row>
+    <entry><literal><function>family</function>(<type>inet</type>)</literal></entry>
+    <entry><type>integer</type></entry>
+    <entry>extract family of address; <literal>4</literal> for IPv4,
+    <literal>6</literal> for IPv6</entry>
+    <entry><literal>family('::1')</literal></entry>
+    <entry><literal>6</literal></entry>
       </tbody>
      </tgroup>
     </table>
-- 
GitLab