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

Commita4303a0

Browse files
committed
Remove unnecessary TYPECACHE_GT_OPR lookup
The TYPECACHE_GT_OPR is not needed (it used to be in older version ofthe MCV code), but the compiler failed to detect this as the result wasused in a fmgr_info() call, populating a FmgrInfo entry.Backpatch to v12, where this code was introduced.Discussion:https://postgr.es/m/8736jdhbhc.fsf%40ansel.ydns.euBackpatch-to: 12
1 parent2103955 commita4303a0

File tree

1 file changed

+0
-6
lines changed
  • src/backend/statistics

1 file changed

+0
-6
lines changed

‎src/backend/statistics/mcv.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,8 +1577,6 @@ mcv_get_match_bitmap(PlannerInfo *root, List *clauses,
15771577

15781578
if (ok)
15791579
{
1580-
TypeCacheEntry*typecache;
1581-
FmgrInfogtproc;
15821580
Var*var;
15831581
Const*cst;
15841582
boolisgt;
@@ -1596,10 +1594,6 @@ mcv_get_match_bitmap(PlannerInfo *root, List *clauses,
15961594
/* match the attribute to a dimension of the statistic */
15971595
idx=bms_member_index(keys,var->varattno);
15981596

1599-
/* get information about the >= procedure */
1600-
typecache=lookup_type_cache(var->vartype,TYPECACHE_GT_OPR);
1601-
fmgr_info(get_opcode(typecache->gt_opr),&gtproc);
1602-
16031597
/*
16041598
* Walk through the MCV items and evaluate the current clause.
16051599
* We can skip items that were already ruled out, and

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp