[Pgpool-hackers] [hackers] PgPool II patches : regex and syslog
Guillaume Lelarge
guillaume.lelarge at dalibo.com
Fri Dec 24 16:35:18 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 21/12/2010 15:11, Gilles Darold a écrit :
> [...]
> 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.
>
Not much to say. It applies, it compiles, and it works. I didn't try
really big regexp, but I'm quite sure it doesn't aim for big regexps.
See attached patch.
Thanks Gilles.
- --
Guillaume Lelarge
Administrateur de bases de données
http://dalibo.com - http://dalibo.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0Uy8YACgkQeWXglSY0snlM3wCguu4b6i2J5p6+00BqziTxypcl
3OYAn04ewYSIwD6GuNX8ezRNzRmgT9VX
=hQoP
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp.patch
Type: text/x-diff
Size: 13181 bytes
Desc: not available
URL: <http://pgfoundry.org/pipermail/pgpool-hackers/attachments/20101224/81c2312a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp.patch.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://pgfoundry.org/pipermail/pgpool-hackers/attachments/20101224/81c2312a/attachment.obj>
More information about the Pgpool-hackers
mailing list