Skip to content

Commit fe35cea

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 9afd513 commit fe35cea

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
@@ -8256,13 +8256,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
82568256
<programlisting>
82578257
<![CDATA[
82588258
/*
8259+
* src/test/examples/testlibpq.c
8260+
*
8261+
*
82598262
* testlibpq.c
82608263
*
82618264
* Test the C version of libpq, the PostgreSQL frontend library.
82628265
*/
82638266
#include <stdio.h>
82648267
#include <stdlib.h>
8265-
#include <libpq-fe.h>
8268+
#include "libpq-fe.h"
82668269

82678270
static void
82688271
exit_nicely(PGconn *conn)
@@ -8383,6 +8386,9 @@ main(int argc, char **argv)
83838386
<programlisting>
83848387
<![CDATA[
83858388
/*
8389+
* src/test/examples/testlibpq2.c
8390+
*
8391+
*
83868392
* testlibpq2.c
83878393
* Test of the asynchronous notification interface
83888394
*
@@ -8415,6 +8421,10 @@ main(int argc, char **argv)
84158421
#include <errno.h>
84168422
#include <sys/time.h>
84178423
#include <sys/types.h>
8424+
#ifdef HAVE_SYS_SELECT_H
8425+
#include <sys/select.h>
8426+
#endif
8427+
84188428
#include "libpq-fe.h"
84198429

84208430
static void
@@ -8526,6 +8536,9 @@ main(int argc, char **argv)
85268536
<programlisting>
85278537
<![CDATA[
85288538
/*
8539+
* src/test/examples/testlibpq3.c
8540+
*
8541+
*
85298542
* testlibpq3.c
85308543
* Test out-of-line parameters and binary I/O.
85318544
*

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy