[Pgpool-hackers] pool status pcp command (was: Splitting the reporting functions)

Jehan-Guillaume (ioguix) de Rorthais jgdr at dalibo.com
Wed Apr 20 14:59:13 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20/04/2011 13:04, Jehan-Guillaume (ioguix) de Rorthais wrote:
> PFA a patch that split reporting functions and cleanup a bit this piece
> of code. HEre is the changelog:
> 
>   * split all functions so we have getters usable from pcp commands
>   * factorize some pieces of code (send_row_description and
> send_complete_and_ready)
>   * send a proper CommandComplete message, including the row number
>   * doesn't rely on sizeof(type) to set postgresql message length, but
> directly on the protocol definition.
> 
> Thank you for comments and review !

PFA a patch to apply on top of my previous patch
"split_reporting_functions-1.patch".

This patch adds the pcp command "pool status" and its related system
command "pcp_pool_status".

Comments:
  * I tried to add pcp_pool_status to the pcp Makefile, but I couldn't
make it build. I looks like I have to rebuild the pcp/Makefile.in, but I
don't know how to do. Any help ?
  * I picked 'B' in the pcp protocol for this ccommand. I should admit I
don't understand how this lietters are chosen. Feel free to change that
  * feel free to change the output of the command pcp_pool_status

Comments ? review ?

Next step will be to add this to the contrib module "pgpool_adm" as soon
as this patch is OK.
- -- 
Jehan-Guillaume (ioguix) de Rorthais
DBA
http://www.dalibo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2u9MEACgkQXu9L1HbaT6LYhACgntmfgcQf4B9btP5gSqQff4YH
psQAnA6chMKNGR8jTjApDg9/XyKtRj8c
=cQYf
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcp_pool_status-1.patch.gz
Type: application/gzip
Size: 4742 bytes
Desc: not available
URL: <http://pgfoundry.org/pipermail/pgpool-hackers/attachments/20110420/4ee5717a/attachment.bin>


More information about the Pgpool-hackers mailing list