Skip to content

Commit da27155

Browse files
committed
Synchronize doc/ copies of src/test/examples/.
This is mostly cosmetic, but it might fix build failures, on some platform, when copying from the documentation. Back-patch to 9.3 (all supported versions).
1 parent f6dd084 commit da27155

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7773,13 +7773,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
77737773
<programlisting>
77747774
<![CDATA[
77757775
/*
7776+
* src/test/examples/testlibpq.c
7777+
*
7778+
*
77767779
* testlibpq.c
77777780
*
77787781
* Test the C version of libpq, the PostgreSQL frontend library.
77797782
*/
77807783
#include <stdio.h>
77817784
#include <stdlib.h>
7782-
#include <libpq-fe.h>
7785+
#include "libpq-fe.h"
77837786

77847787
static void
77857788
exit_nicely(PGconn *conn)
@@ -7900,6 +7903,9 @@ main(int argc, char **argv)
79007903
<programlisting>
79017904
<![CDATA[
79027905
/*
7906+
* src/test/examples/testlibpq2.c
7907+
*
7908+
*
79037909
* testlibpq2.c
79047910
* Test of the asynchronous notification interface
79057911
*
@@ -7932,6 +7938,10 @@ main(int argc, char **argv)
79327938
#include <errno.h>
79337939
#include <sys/time.h>
79347940
#include <sys/types.h>
7941+
#ifdef HAVE_SYS_SELECT_H
7942+
#include <sys/select.h>
7943+
#endif
7944+
79357945
#include "libpq-fe.h"
79367946

79377947
static void
@@ -8043,6 +8053,9 @@ main(int argc, char **argv)
80438053
<programlisting>
80448054
<![CDATA[
80458055
/*
8056+
* src/test/examples/testlibpq3.c
8057+
*
8058+
*
80468059
* testlibpq3.c
80478060
* Test out-of-line parameters and binary I/O.
80488061
*

src/test/examples/testlibpq2.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ CREATE TABLE TBL1 (i int4);
33
CREATE TABLE TBL2 (i int4);
44

55
CREATE RULE r1 AS ON INSERT TO TBL1 DO
6-
(INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2);
6+
(INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2);

0 commit comments

Comments
 (0)