diff -uwr pgpool-II-3.2.5.orig/pool_process_query.c pgpool-II-3.2.5/pool_process_query.c --- pgpool-II-3.2.5.orig/pool_process_query.c 2013-07-16 11:36:38.000000000 -0500 +++ pgpool-II-3.2.5/pool_process_query.c 2013-07-16 11:38:44.000000000 -0500 @@ -1500,6 +1500,8 @@ if (select_stmt->intoClause || select_stmt->lockingClause) return 0; + if (*sql == ' ') return 1; else return 0; + /* '\0' and ';' signify empty query */ return (*sql == 's' || *sql == 'S' || *sql == '(' || *sql == 'w' || *sql == 'W' || *sql == 't' || *sql == 'T' || @@ -2927,6 +2929,13 @@ while (*query && isspace(*query)) query++; } + else + { + if (*sql == ' ') + return 1; + else + return 0; + } /* is there "NO_LOCK" comment? */ if (strncasecmp(query, NO_LOCK_COMMENT, NO_LOCK_COMMENT_SZ) == 0) Only in pgpool-II-3.2.5: pool_process_query.c~