[Pgpool-general] Not detecting primary node properly, streaming replication ( hacky patch supplied)

David Markey admin at dmarkey.com
Sun Aug 28 20:32:45 UTC 2011


With pgpool 3.0.4,

It wasnt detecting my primary backend. (9.0.3 streaming backend, one primary
one hot standby).


This patch worked for me. Perhaps its completely wrong, but it now properly
detects my primary backend.

--- pgpool-II-3.0.4/main.c 2011-05-25 18:13:16.000000000 +0100
+++ pgpool-II-3.0.4.new/main.c 2011-08-28 21:24:08.000000000 +0100
@@ -2290,7 +2290,7 @@
  for(i=0;i<NUM_BACKENDS;i++)
  {
  if (!VALID_BACKEND(i))
- continue;
+ break;

  /*
  * Check to see if this is a standby node or not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pgfoundry.org/pipermail/pgpool-general/attachments/20110828/63ee6912/attachment.html>


More information about the Pgpool-general mailing list