Change the apply trigger query cache to use a small footprint of the query
authorJan Wieck <JanWieck@Yahoo.com>
Fri, 20 Jan 2012 21:17:06 +0000 (16:17 -0500)
committerJan Wieck <JanWieck@Yahoo.com>
Fri, 20 Jan 2012 21:17:06 +0000 (16:17 -0500)
commit1ac9259fa2849de4d065c0d092945886f0a1aeb3
tree6878d85ccc4d352c25ebf9665709017ebcf96e5b
parent88cbcd18e54263196012a66aa66b8f0a7da519a8
Change the apply trigger query cache to use a small footprint of the query
as the hash key. This key can be computed without doing any of the column
type lookups, making the query cache more efficient. If a prepared plan
is found, none of the catalog lookups are required at all.

Add a configuration option "apply_cache_size" to slon.conf.

Use custom wrappers around hash_any() and strcpm() to eliminate the use of md5.
share/slon.conf-sample
src/backend/slony1_funcs.c
src/backend/slony1_funcs.sql
src/slon/confoptions.c
src/slon/confoptions.h
src/slon/remote_worker.c
src/slon/slon.c