I have successfully configured our application with PGpool, and I must say, it is pretty awesome. I am trying to expose information about the PGPool cluster in our app, and I'm having trouble using 'SHOW' commands over JDBC with the postgres Driver.
Driver:
postgresql-9.3-1101-jdbc41.jar
When I try to execute the query "SHOW pool_nodes", I get this error:
ERROR: unrecognized configuration parameter "pool_nodes"
I'm pretty certain I'm connected to pgpool and not postgres, since failover is working great. My guess is that the postgres driver is doing some checks up front. Does anyone have an suggestions for getting a hold of this data in my java application?
It's no method to get result from show command, so I used pgadmin and add some PHP code to got it.
First you must install pgadmin and add getNodeInfo.php to the folder, and getNodeInfo.php code:
If your pgadmin is OK to work, you can call http://localhost/getNodeInfo.php to get like
If status == 3, the host is down.