summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorMichael P2011-06-16 00:05:43 +0000
committerMichael P2011-06-16 00:05:43 +0000
commit88a19b42f3b599927b74e0aef2e19b9161b3a7eb (patch)
tree9522071fb3affa0309bebde19de9db1bbc80ccb5 /src/include/utils
parentbcfa7b115f2a76e0146016dee36995df6eab89d0 (diff)
Support for START TRANSACTION
Until now XC was just sending down to Datanodes a plain BEGIN query each time a transaction was begun on backend nodes. This commit extends support of transaction start with isolation level and read operation customizations. Example of queries: START TRANSACTION ISOLATION LEVEL READ COMMITTED; START TRANSACTION READ WRITE; Regression test transaction is now fixed.
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/guc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 9eb37b8860..6192d374da 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -277,6 +277,10 @@ extern void SetPGVariable(const char *name, List *args, bool is_local);
extern void GetPGVariable(const char *name, DestReceiver *dest);
extern TupleDesc GetPGVariableResultDesc(const char *name);
+#ifdef PGXC
+extern char *RewriteBeginQuery(char *query_string, const char *name, List *args);
+#endif
+
extern void ExecSetVariableStmt(VariableSetStmt *stmt);
extern char *ExtractSetVariableArgs(VariableSetStmt *stmt);