From f18b1ceaea3d1b56ad15395efce4064344557ae9 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Wed, 25 Feb 2004 13:47:27 +0000 Subject: o Fix some bugs reported on ML. o Fix more style bugs in debug message. o Add internal function to postmaster which returns current replication server. o Add new packet handler to pgreplicate which returns cluster node status information. o Add check scripts for nagios. These scripts may be useful, but not intended to officially supported by me. I'll make them as another port when they become stable. --- databases/pgcluster/files/patch-libpq:recovery.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 databases/pgcluster/files/patch-libpq:recovery.c (limited to 'databases/pgcluster/files/patch-libpq:recovery.c') diff --git a/databases/pgcluster/files/patch-libpq:recovery.c b/databases/pgcluster/files/patch-libpq:recovery.c new file mode 100644 index 000000000000..74852c235408 --- /dev/null +++ b/databases/pgcluster/files/patch-libpq:recovery.c @@ -0,0 +1,23 @@ +--- src/backend/libpq/recovery.c.orig Fri Feb 20 11:38:39 2004 ++++ src/backend/libpq/recovery.c Mon Feb 23 14:44:15 2004 +@@ -756,14 +756,14 @@ + + if (Debug_pretty_print) + { +- elog(DEBUG1,"no = %d\n",packet->packet_no); +- elog(DEBUG1,"max_connect = %d\n",packet->max_connect); +- elog(DEBUG1,"port = %d\n",packet->port); +- elog(DEBUG1,"recoveryPort = %d\n",packet->recoveryPort); ++ elog(DEBUG1,"no = %d",packet->packet_no); ++ elog(DEBUG1,"max_connect = %d",packet->max_connect); ++ elog(DEBUG1,"port = %d",packet->port); ++ elog(DEBUG1,"recoveryPort = %d",packet->recoveryPort); + if (packet->hostName != NULL) +- elog(DEBUG1,"hostName = %s\n",packet->hostName); ++ elog(DEBUG1,"hostName = %s",packet->hostName); + if (packet->pg_data != NULL) +- elog(DEBUG1,"pg_data = %s\n",packet->pg_data); ++ elog(DEBUG1,"pg_data = %s",packet->pg_data); + } + } + -- cgit v1.2.3