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).
<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)
<programlisting>
<![CDATA[
/*
+ * src/test/examples/testlibpq2.c
+ *
+ *
* testlibpq2.c
* Test of the asynchronous notification interface
*
#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
<programlisting>
<![CDATA[
/*
+ * src/test/examples/testlibpq3.c
+ *
+ *
* testlibpq3.c
* Test out-of-line parameters and binary I/O.
*
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);