pgpool2.git / summary / log / commit / refs
commit 3ff96cf65554d526aabdfe8670f6e9826bf4de8f
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Sun Feb 07 03:05:17 2010 +0000
Fix SimpleQuery if DEALLOCATE received, register pending function.
pool_proto_modules.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pool_proto_modules.c b/pool_proto_modules.c
index aa8176518..aabf72017 100644
--- a/pool_proto_modules.c
+++ b/pool_proto_modules.c
@@ -347,11 +347,11 @@ POOL_STATUS NotificationResponse(POOL_CONNECTION *frontend,
return POOL_CONTINUE;
}
- if (IsA(node, PrepareStmt) ||
+ if (IsA(node, PrepareStmt) || IsA(node, DeallocateStmt) ||
IsA(node, VariableSetStmt) || IsA(node, DiscardStmt))
{
/*
- * PREPARE, SET and DISCARD statements must be
+ * PREPARE, SET, DEALLOCATE and DISCARD statements must be
* replicated even if we are in master/slave mode.
*/
if (MASTER_SLAVE && TSTATE(backend) != 'E')
[parent: 1762ddfc629f]