Skip to content

Commit 269dce4

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 7dc5f31 commit 269dce4

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
@@ -7908,13 +7908,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
79087908
<programlisting>
79097909
<![CDATA[
79107910
/*
7911+
* src/test/examples/testlibpq.c
7912+
*
7913+
*
79117914
* testlibpq.c
79127915
*
79137916
* Test the C version of libpq, the PostgreSQL frontend library.
79147917
*/
79157918
#include <stdio.h>
79167919
#include <stdlib.h>
7917-
#include <libpq-fe.h>
7920+
#include "libpq-fe.h"
79187921

79197922
static void
79207923
exit_nicely(PGconn *conn)
@@ -8035,6 +8038,9 @@ main(int argc, char **argv)
80358038
<programlisting>
80368039
<![CDATA[
80378040
/*
8041+
* src/test/examples/testlibpq2.c
8042+
*
8043+
*
80388044
* testlibpq2.c
80398045
* Test of the asynchronous notification interface
80408046
*
@@ -8067,6 +8073,10 @@ main(int argc, char **argv)
80678073
#include <errno.h>
80688074
#include <sys/time.h>
80698075
#include <sys/types.h>
8076+
#ifdef HAVE_SYS_SELECT_H
8077+
#include <sys/select.h>
8078+
#endif
8079+
80708080
#include "libpq-fe.h"
80718081

80728082
static void
@@ -8178,6 +8188,9 @@ main(int argc, char **argv)
81788188
<programlisting>
81798189
<![CDATA[
81808190
/*
8191+
* src/test/examples/testlibpq3.c
8192+
*
8193+
*
81818194
* testlibpq3.c
81828195
* Test out-of-line parameters and binary I/O.
81838196
*

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)