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

Commite5bdd8d

Browse files
committed
Skip unnecessary plan-copying now that plan trees are read-only in the
executor.
1 parent81ca457 commite5bdd8d

File tree

1 file changed

+2
-5
lines changed
  • src/backend/executor

1 file changed

+2
-5
lines changed

‎src/backend/executor/spi.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.81 2002/12/15 21:01:34 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.82 2002/12/17 15:51:59 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -219,9 +219,6 @@ SPI_execp(void *plan, Datum *Values, char *Nulls, int tcount)
219219
if (res<0)
220220
returnres;
221221

222-
/* copy plan to current (executor) context */
223-
plan= (void*)_SPI_copy_plan(plan,_SPI_CPLAN_CURCXT);
224-
225222
res=_SPI_execute_plan((_SPI_plan*)plan,Values,Nulls,tcount);
226223

227224
_SPI_end_call(true);
@@ -1480,7 +1477,7 @@ _SPI_copy_plan(_SPI_plan *plan, int location)
14801477
parentcxt=_SPI_current->procCxt;
14811478
elseif (location==_SPI_CPLAN_TOPCXT)
14821479
parentcxt=TopMemoryContext;
1483-
else
1480+
else/* (this case not currently used) */
14841481
parentcxt=CurrentMemoryContext;
14851482

14861483
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp