pgpool2.git / summary / log / commit / refs

commit    50e6c5e32ae3e25128e85733c192ab8b451aec05
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Thu Aug 19 07:35:13 2010 +0000

    Remove unnecessary restriction(with version 2 protoocl it always
    returns 0) of need_insert_lock. do_query has already supports v2
    protocol.


pool_process_query.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pool_process_query.c b/pool_process_query.c index 4835e1f01..6c3079dab 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -2749,15 +2749,6 @@ int need_insert_lock(POOL_CONNECTION_POOL *backend, char *query, Node *node) int result; static POOL_RELCACHE *relcache; - /* - * for version 2 protocol, we cannot check if it's actually uses - * SERIAL data types or not since the underlying infrastructure - * (do_query) does not support the protocol. So we just return - * false. - */ - if (MAJOR(backend) == PROTO_MAJOR_V2) - return 0; - /* INSERT statement? */ if (!IsA(node, InsertStmt)) return 0; [parent: 23e2b2a3c241]