diff options
| author | Michael P | 2011-06-16 00:05:43 +0000 |
|---|---|---|
| committer | Michael P | 2011-06-16 00:05:43 +0000 |
| commit | 88a19b42f3b599927b74e0aef2e19b9161b3a7eb (patch) | |
| tree | 9522071fb3affa0309bebde19de9db1bbc80ccb5 /src/include/utils | |
| parent | bcfa7b115f2a76e0146016dee36995df6eab89d0 (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.h | 4 |
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); |
