[Pgpool-hackers] Why not display who is the master in SHOW pool_nodes ?

Guillaume Lelarge guillaume at lelarge.info
Wed Jan 5 08:04:55 UTC 2011


Le 05/01/2011 02:46, Tatsuo Ishii a écrit :
>> Le 30/12/2010 23:52, Gilles Darold a écrit :
>>> Sorry again I've sent the wrong patch, here is the one using
>>> REAL_PRIMARY_NODE_ID.
>>> Please apologies for so much post.
>>>
>>
>> It compiles and runs. No bug found.
> 
> I wonder what is shown in the field when operated in other than
> master/slave & streaming replication mode.

It says that all nodes are primary or all nodes are standby, which
obvisouly is wrong. The patch needs to check we are in master/slave mode
and in replication mode. Otherwise, it should say N/A. Gilles, ca, you
do this little change, please?


-- 
Guillaume
 http://www.postgresql.fr
 http://dalibo.com


More information about the Pgpool-hackers mailing list