diff options
author | Jan Wieck <JanWieck@Yahoo.com> | 1999-02-07 13:37:56 +0000 |
---|---|---|
committer | Jan Wieck <JanWieck@Yahoo.com> | 1999-02-07 13:37:56 +0000 |
commit | a5f3abacb5b8b9e8abf7c1510063dd964a7194da (patch) | |
tree | 4b0f3f6321b53a1b9561ec61c96c5fb4eace36bc /src/backend/executor/execMain.c | |
parent | 65d320e7e420ea41f86764bda351f1931274f1e0 (diff) | |
download | postgresql-a5f3abacb5b8b9e8abf7c1510063dd964a7194da.tar.gz |
Fixed problem with multiple portals shown up in portals_p2 regression
test after new AllocSet code.
Activated optimal AllocSet blocksize and chunk limit.
Jan
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 51478f0625..7a8730ce02 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.71 1999/02/06 16:50:23 wieck Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.72 1999/02/07 13:37:55 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -128,8 +128,22 @@ ExecutorStart(QueryDesc *queryDesc, EState *estate) memset(estate->es_param_exec_vals, 0, queryDesc->plantree->nParamExec * sizeof(ParamExecData)); } - estate->es_snapshot = QuerySnapshot; + /* + * Make our own private copy of the current queries snapshot data + */ + estate->es_snapshot = (Snapshot)palloc(sizeof(SnapshotData)); + memcpy(estate->es_snapshot, QuerySnapshot, sizeof(SnapshotData)); + if (estate->es_snapshot->xcnt > 0) + { + estate->es_snapshot->xip = (TransactionId *) + palloc(estate->es_snapshot->xcnt * sizeof(TransactionId)); + memcpy(estate->es_snapshot->xip, QuerySnapshot->xip, + estate->es_snapshot->xcnt * sizeof(TransactionId)); + } + /* + * Initialize the plan + */ result = InitPlan(queryDesc->operation, queryDesc->parsetree, queryDesc->plantree, |