Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita5f3aba

Browse files
Jan WieckJan Wieck
Jan Wieck
authored and
Jan Wieck
committed
Fixed problem with multiple portals shown up in portals_p2 regression
test after new AllocSet code.Activated optimal AllocSet blocksize and chunk limit.Jan
1 parent65d320e commita5f3aba

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

‎src/backend/executor/execMain.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.71 1999/02/06 16:50:23 wieck Exp $
29+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.72 1999/02/07 13:37:55 wieck Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -128,8 +128,22 @@ ExecutorStart(QueryDesc *queryDesc, EState *estate)
128128
memset(estate->es_param_exec_vals,0,queryDesc->plantree->nParamExec*sizeof(ParamExecData));
129129
}
130130

131-
estate->es_snapshot=QuerySnapshot;
131+
/*
132+
* Make our own private copy of the current queries snapshot data
133+
*/
134+
estate->es_snapshot= (Snapshot)palloc(sizeof(SnapshotData));
135+
memcpy(estate->es_snapshot,QuerySnapshot,sizeof(SnapshotData));
136+
if (estate->es_snapshot->xcnt>0)
137+
{
138+
estate->es_snapshot->xip= (TransactionId*)
139+
palloc(estate->es_snapshot->xcnt*sizeof(TransactionId));
140+
memcpy(estate->es_snapshot->xip,QuerySnapshot->xip,
141+
estate->es_snapshot->xcnt*sizeof(TransactionId));
142+
}
132143

144+
/*
145+
* Initialize the plan
146+
*/
133147
result=InitPlan(queryDesc->operation,
134148
queryDesc->parsetree,
135149
queryDesc->plantree,

‎src/backend/utils/mmgr/aset.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.12 1999/02/06 16:50:25 wieck Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.13 1999/02/07 13:37:56 wieck Exp $
1111
*
1212
* NOTE:
1313
*This is a new (Feb. 05, 1999) implementation of the allocation set
@@ -38,17 +38,8 @@
3838
#undef realloc
3939

4040

41-
/*
4241
#defineALLOC_BLOCK_SIZE8192
4342
#defineALLOC_CHUNK_LIMIT512
44-
*
45-
* The above settings for block size and chunk limit gain better
46-
* performance. But the ones below force a bug that I didn't found
47-
* up to now letting the portals_p2 regression test fail.
48-
*
49-
*/
50-
#defineALLOC_BLOCK_SIZE16384
51-
#defineALLOC_CHUNK_LIMIT256
5243

5344
#defineALLOC_BLOCKHDRSZMAXALIGN(sizeof(AllocBlockData))
5445
#defineALLOC_CHUNKHDRSZMAXALIGN(sizeof(AllocChunkData))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp