From f883e2007a6a8aecce2e2ffc7dae91ffc8fdac8c Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Wed, 6 Jan 2010 19:07:05 +0000
Subject: [PATCH] Fix missing <manvolnum> markers in dblink reference entries.
 Silences complaints from "make man", and allows these man pages to be
 included in man3/.

---
 doc/src/sgml/Makefile    |  3 +--
 doc/src/sgml/dblink.sgml | 25 ++++++++++++++++++++++++-
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index 577b5e75ab9..223bfbb094b 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -2,7 +2,7 @@
 #
 # PostgreSQL documentation makefile
 #
-# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.134 2009/12/30 13:48:52 petere Exp $
+# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.135 2010/01/06 19:07:05 tgl Exp $
 #
 #----------------------------------------------------------------------------
 
@@ -77,7 +77,6 @@ man: man-stamp
 
 man-stamp: stylesheet-man.xsl postgres.xml
 	$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^
-	rm man1/dblink*
 	touch $@
 
 
diff --git a/doc/src/sgml/dblink.sgml b/doc/src/sgml/dblink.sgml
index 75b5ce8c32f..5672c1bb630 100644
--- a/doc/src/sgml/dblink.sgml
+++ b/doc/src/sgml/dblink.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/dblink.sgml,v 1.9 2009/08/05 16:11:07 joe Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/dblink.sgml,v 1.10 2010/01/06 19:07:05 tgl Exp $ -->
 
 <sect1 id="dblink">
  <title>dblink</title>
@@ -16,6 +16,7 @@
  <refentry id="CONTRIB-DBLINK-CONNECT">
   <refmeta>
    <refentrytitle>dblink_connect</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -181,6 +182,7 @@
  <refentry id="CONTRIB-DBLINK-CONNECT-U">
   <refmeta>
    <refentrytitle>dblink_connect_u</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -233,6 +235,7 @@
  <refentry id="CONTRIB-DBLINK-DISCONNECT">
   <refmeta>
    <refentrytitle>dblink_disconnect</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -303,6 +306,7 @@
  <refentry id="CONTRIB-DBLINK">
   <refmeta>
    <refentrytitle>dblink</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -525,6 +529,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-EXEC">
   <refmeta>
    <refentrytitle>dblink_exec</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -657,6 +662,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-OPEN">
   <refmeta>
    <refentrytitle>dblink_open</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -776,6 +782,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-FETCH">
   <refmeta>
    <refentrytitle>dblink_fetch</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -924,6 +931,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-CLOSE">
   <refmeta>
    <refentrytitle>dblink_close</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1030,6 +1038,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-GET-CONNECTIONS">
   <refmeta>
    <refentrytitle>dblink_get_connections</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1070,6 +1079,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-ERROR-MESSAGE">
   <refmeta>
    <refentrytitle>dblink_error_message</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1128,6 +1138,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-SEND-QUERY">
   <refmeta>
    <refentrytitle>dblink_send_query</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1205,6 +1216,7 @@ SELECT *
  <refentry id="CONTRIB-DBLINK-IS-BUSY">
   <refmeta>
    <refentrytitle>dblink_is_busy</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1261,6 +1273,11 @@ SELECT *
  </refentry>
 
  <refentry id="CONTRIB-DBLINK-GET-NOTIFY">
+  <refmeta>
+   <refentrytitle>dblink_get_notify</refentrytitle>
+   <manvolnum>3</manvolnum>
+  </refmeta>
+
   <refnamediv>
    <refname>dblink_get_notify</refname>
    <refpurpose>retrieve async notifications on a connection</refpurpose>
@@ -1336,6 +1353,7 @@ SELECT * FROM dblink_get_notify();
  <refentry id="CONTRIB-DBLINK-GET-RESULT">
   <refmeta>
    <refentrytitle>dblink_get_result</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1483,6 +1501,7 @@ SELECT * FROM dblink_get_notify();
  <refentry id="CONTRIB-DBLINK-CANCEL-QUERY">
   <refmeta>
    <refentrytitle>dblink_cancel_query</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1546,6 +1565,7 @@ SELECT * FROM dblink_get_notify();
  <refentry id="CONTRIB-DBLINK-GET-PKEY">
   <refmeta>
    <refentrytitle>dblink_get_pkey</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1624,6 +1644,7 @@ test=# select * from dblink_get_pkey('foobar');
  <refentry id="CONTRIB-DBLINK-BUILD-SQL-INSERT">
   <refmeta>
    <refentrytitle>dblink_build_sql_insert</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1740,6 +1761,7 @@ test=# select * from dblink_get_pkey('foobar');
  <refentry id="CONTRIB-DBLINK-BUILD-SQL-DELETE">
   <refmeta>
    <refentrytitle>dblink_build_sql_delete</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
@@ -1839,6 +1861,7 @@ test=# select * from dblink_get_pkey('foobar');
  <refentry id="CONTRIB-DBLINK-BUILD-SQL-UPDATE">
   <refmeta>
    <refentrytitle>dblink_build_sql_update</refentrytitle>
+   <manvolnum>3</manvolnum>
   </refmeta>
 
   <refnamediv>
-- 
GitLab