diff options
author | Noah Misch <noah@leadboat.com> | 2018-02-23 11:24:04 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2018-02-23 11:24:07 -0800 |
commit | 14bd9bcd54bc9618f89cf38d3c1c641bb93729a0 (patch) | |
tree | 3bd55c8e9ea45526214854345dc0596cad15974c | |
parent | c458970ad5eabc3c8e600a28ed61b797c3b41bd4 (diff) | |
download | postgresql-14bd9bcd54bc9618f89cf38d3c1c641bb93729a0.tar.gz postgresql-14bd9bcd54bc9618f89cf38d3c1c641bb93729a0.zip |
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).
-rw-r--r-- | doc/src/sgml/libpq.sgml | 15 | ||||
-rw-r--r-- | src/test/examples/testlibpq2.sql | 2 |
2 files changed, 15 insertions, 2 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index fa3487fd36b..d44edfe8a03 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -8230,13 +8230,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage' <programlisting> <![CDATA[ /* + * src/test/examples/testlibpq.c + * + * * testlibpq.c * * Test the C version of libpq, the PostgreSQL frontend library. */ #include <stdio.h> #include <stdlib.h> -#include <libpq-fe.h> +#include "libpq-fe.h" static void exit_nicely(PGconn *conn) @@ -8357,6 +8360,9 @@ main(int argc, char **argv) <programlisting> <![CDATA[ /* + * src/test/examples/testlibpq2.c + * + * * testlibpq2.c * Test of the asynchronous notification interface * @@ -8389,6 +8395,10 @@ main(int argc, char **argv) #include <errno.h> #include <sys/time.h> #include <sys/types.h> +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + #include "libpq-fe.h" static void @@ -8500,6 +8510,9 @@ main(int argc, char **argv) <programlisting> <![CDATA[ /* + * src/test/examples/testlibpq3.c + * + * * testlibpq3.c * Test out-of-line parameters and binary I/O. * diff --git a/src/test/examples/testlibpq2.sql b/src/test/examples/testlibpq2.sql index fb7d3535073..1686c3ed0df 100644 --- a/src/test/examples/testlibpq2.sql +++ b/src/test/examples/testlibpq2.sql @@ -3,4 +3,4 @@ CREATE TABLE TBL1 (i int4); CREATE TABLE TBL2 (i int4); CREATE RULE r1 AS ON INSERT TO TBL1 DO -(INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2); + (INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2); |