Skip to content

Commit a7eab4e

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 71a0d0c commit a7eab4e

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7779,13 +7779,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
77797779
<programlisting>
77807780
<![CDATA[
77817781
/*
7782+
* src/test/examples/testlibpq.c
7783+
*
7784+
*
77827785
* testlibpq.c
77837786
*
77847787
* Test the C version of libpq, the PostgreSQL frontend library.
77857788
*/
77867789
#include <stdio.h>
77877790
#include <stdlib.h>
7788-
#include <libpq-fe.h>
7791+
#include "libpq-fe.h"
77897792

77907793
static void
77917794
exit_nicely(PGconn *conn)
@@ -7906,6 +7909,9 @@ main(int argc, char **argv)
79067909
<programlisting>
79077910
<![CDATA[
79087911
/*
7912+
* src/test/examples/testlibpq2.c
7913+
*
7914+
*
79097915
* testlibpq2.c
79107916
* Test of the asynchronous notification interface
79117917
*
@@ -7933,7 +7939,12 @@ main(int argc, char **argv)
79337939
#include <string.h>
79347940
#include <errno.h>
79357941
#include <sys/time.h>
7936-
#include <libpq-fe.h>
7942+
#include <sys/types.h>
7943+
#ifdef HAVE_SYS_SELECT_H
7944+
#include <sys/select.h>
7945+
#endif
7946+
7947+
#include "libpq-fe.h"
79377948

79387949
static void
79397950
exit_nicely(PGconn *conn)
@@ -8044,6 +8055,9 @@ main(int argc, char **argv)
80448055
<programlisting>
80458056
<![CDATA[
80468057
/*
8058+
* src/test/examples/testlibpq3.c
8059+
*
8060+
*
80478061
* testlibpq3.c
80488062
* Test out-of-line parameters and binary I/O.
80498063
*

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)