[MINOR] checks: add PostgreSQL health check
I have written a small patch to enable a correct PostgreSQL health check
It works similar to mysql-check with the very same parameters.
E.g.:
listen pgsql 127.0.0.1:5432
mode tcp
option pgsql-check user pgsql
server masterdb pgsql.server.com:5432 check inter 10000
diff --git a/include/types/proxy.h b/include/types/proxy.h
index 8da98a6..7a3276e 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -149,6 +149,8 @@
#define PR_O2_EXP_TYPE 0x03800000 /* mask for http-check expect type */
#define PR_O2_EXP_INV 0x04000000 /* http-check expect !<rule> */
#define PR_O2_COOK_PSV 0x08000000 /* cookie ... preserve */
+
+#define PR_O2_PGSQL_CHK 0x10000000 /* use PGSQL check for server health */
/* end of proxy->options2 */
/* bits for sticking rules */