pgpool2.git / summary / log / commit / refs

commit    b4e54f67666fd02e57c39b217114daf1ccf8fda2
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Thu Apr 19 00:37:21 2012 +0000

    Add param_offset to POOL_SENT_MESSAGE. This is to be used for bind
    message.  When memory cache is enabled and the query is cache safe,
    param_offset stores the offset from "contents" member where actual
    bind parameters are stored.


pool_session_context.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pool_session_context.h b/pool_session_context.h index 834bf5265..04e4cee66 100644 --- a/pool_session_context.h +++ b/pool_session_context.h @@ -55,7 +55,14 @@ typedef struct { int num_tsparams; char *name; /* object name of prepared statement or portal */ POOL_QUERY_CONTEXT *query_context; + /* + * Following members are only used when memcache is enabled. + */ bool is_cache_safe; /* true if the query can be cached */ + int param_offset; /* Offset from contents where actual bind + * paramters are stored. + * This is meaningful only when is_cache_safe is true. + */ } POOL_SENT_MESSAGE; /* [parent: 2f8fe8800162]