summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorMarko Kreen2007-11-19 09:13:53 +0000
committerMarko Kreen2007-11-19 09:13:53 +0000
commite701290ff5c03c5f0addb44f9b78dd1f941f9299 (patch)
tree20ec0c5d877908a213d18df845cc19806c20128b /src/execute.c
parenta5e9098653672bbeaec78c4d23f2c398e77f8b52 (diff)
Remote 'statement_timeout' config parameter.
It did not work in 2.0.2 and although it works now, it could not work in live env as the SET cannot be combined with main request, thus likely it will be executed on different backend.
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/execute.c b/src/execute.c
index a0d018e..338b6e3 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -95,7 +95,6 @@ flush_connection(ProxyFunction *func, ProxyConnection *conn)
static int
tune_connection(ProxyFunction *func, ProxyConnection *conn)
{
- ProxyConfig *cf = &func->cur_cluster->config;
const char *this_enc, *dst_enc;
const char *dst_ver;
StringInfo sql = NULL;
@@ -128,15 +127,6 @@ tune_connection(ProxyFunction *func, ProxyConnection *conn)
conn_error(func, conn, sql->data);
}
- /* add statement_timeout to query */
- if (cf->statement_timeout >= 0 && !conn->tuning)
- {
- if (!sql)
- sql = makeStringInfo();
- appendStringInfo(sql, "set statement_timeout = %d; ",
- cf->statement_timeout);
- }
-
/*
* send tuning query
*/