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

Commite524cbd

Browse files
committed
Track typmods in plpgsql expression evaluation and assignment.
The main value of this change is to avoid expensive I/O conversions whenassigning to a variable that has a typmod specification, if the valueto be assigned is already known to have the right typmod. This isparticularly valuable for arrays with typmod specifications; formerly,in an assignment to an array element the entire array would invariablyget put through double I/O conversion to check the typmod, to absolutelyno purpose since we'd already properly coerced the new element value.Extracted from my "expanded arrays" patch; this seems worth committingseparately, whatever becomes of that patch, since it's really anindependent issue.As long as we're changing the function signatures, take the opportunityto rationalize the argument lists of exec_assign_value, exec_cast_value,and exec_simple_cast_value; that is, put the arguments into a saner order,and get rid of the bizarre choice to pass exec_assign_value's isNull flagby reference.
1 parentb514a74 commite524cbd

File tree

2 files changed

+165
-120
lines changed

2 files changed

+165
-120
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp