[Pgpool-committers] pgpool - pgpool-II: Allow to use regular expressions in black and white
User T-ishii
t-ishii at pgfoundry.org
Sun Dec 26 00:58:36 UTC 2010
Log Message:
-----------
Allow to use regular expressions in black and white function list.
Patch created by Gilles Darold. Here is the description he wrote.
Regex patch :
The regex struct array is stored in pool_config struct, it is
dynamically expendable by PATTERN_ARR_SIZE when it reached
NxPATTERN_ARR_SIZE (start with 16 regex max).
All entries in white_function_list or black_function_list are stored
in this array with a flag to differentiate them. To preserve
backward compatibility and prevent partial matching lists entries
are all prefixed with '^' and ended with '$' if not already done.
This also mean that if we want to match function beginning with
"write_" it has to be written : "write_.*". Indeed "^write_.*$"
works too.
Patch reviewd by Guillaume Lela.
Modified Files:
--------------
pgpool-II:
pool_config.c (r1.52 -> r1.53)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_config.c?r1=1.52&r2=1.53)
pool_config.l (r1.48 -> r1.49)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_config.l?r1=1.48&r2=1.49)
pool_config.h (r1.8 -> r1.9)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_config.h?r1=1.8&r2=1.9)
pool_select_walker.c (r1.6 -> r1.7)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_select_walker.c?r1=1.6&r2=1.7)
More information about the Pgpool-committers
mailing list