Skip to content

Commit b673837

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 e7c02a5 commit b673837

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
@@ -8015,13 +8015,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
80158015
<programlisting>
80168016
<![CDATA[
80178017
/*
8018+
* src/test/examples/testlibpq.c
8019+
*
8020+
*
80188021
* testlibpq.c
80198022
*
80208023
* Test the C version of libpq, the PostgreSQL frontend library.
80218024
*/
80228025
#include <stdio.h>
80238026
#include <stdlib.h>
8024-
#include <libpq-fe.h>
8027+
#include "libpq-fe.h"
80258028

80268029
static void
80278030
exit_nicely(PGconn *conn)
@@ -8142,6 +8145,9 @@ main(int argc, char **argv)
81428145
<programlisting>
81438146
<![CDATA[
81448147
/*
8148+
* src/test/examples/testlibpq2.c
8149+
*
8150+
*
81458151
* testlibpq2.c
81468152
* Test of the asynchronous notification interface
81478153
*
@@ -8174,6 +8180,10 @@ main(int argc, char **argv)
81748180
#include <errno.h>
81758181
#include <sys/time.h>
81768182
#include <sys/types.h>
8183+
#ifdef HAVE_SYS_SELECT_H
8184+
#include <sys/select.h>
8185+
#endif
8186+
81778187
#include "libpq-fe.h"
81788188

81798189
static void
@@ -8285,6 +8295,9 @@ main(int argc, char **argv)
82858295
<programlisting>
82868296
<![CDATA[
82878297
/*
8298+
* src/test/examples/testlibpq3.c
8299+
*
8300+
*
82888301
* testlibpq3.c
82898302
* Test out-of-line parameters and binary I/O.
82908303
*

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