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

Commit4a8283d

Browse files
committed
Fix handling of volatile expressions in COPY FROM ... WHERE
The checking for calls to volatile functions in the COPY FROM ... WHEREexpression was treating all WHERE clauses as if containing such calls.While that does not produce incorrect results, this disables batchingwhich may result in significant performance regression.Discussion:https://www.postgresql.org/message-id/flat/CALAY4q_DdpWDuB5-Zyi-oTtO2uSk8pmy+dupiRe3AvAc++1imA@mail.gmail.com
1 parent0058810 commit4a8283d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/backend/commands/copy.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,8 +2612,7 @@ CopyFrom(CopyState cstate)
26122612
*/
26132613
insertMethod=CIM_SINGLE;
26142614
}
2615-
elseif (cstate->whereClause!=NULL||
2616-
contain_volatile_functions(cstate->whereClause))
2615+
elseif (contain_volatile_functions(cstate->whereClause))
26172616
{
26182617
/*
26192618
* Can't support multi-inserts if there are any volatile funcation

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp