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).
/*
+ * src/test/examples/testlibpq.c
+ *
+ *
* testlibpq.c
*
* Test the C version of libpq, the PostgreSQL frontend library.
*/
#include
#include
-#include
+#include "libpq-fe.h"
static void
exit_nicely(PGconn *conn)
/*
+ * src/test/examples/testlibpq2.c
+ *
+ *
* testlibpq2.c
* Test of the asynchronous notification interface
*
#include
#include
#include
+#ifdef HAVE_SYS_SELECT_H
+#include
+#endif
+
#include "libpq-fe.h"
static void
/*
+ * 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);