pgsql: Remove unnecessary TYPECACHE_GT_OPR lookup

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unnecessary TYPECACHE_GT_OPR lookup
Date: 2019-07-18 09:30:00
Message-ID: E1ho2jg-0004Dt-LP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove unnecessary TYPECACHE_GT_OPR lookup

The TYPECACHE_GT_OPR is not needed (it used to be in older version of
the MCV code), but the compiler failed to detect this as the result was
used 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.eu
Backpatch-to: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a4303a078c661ebafe8c8c2167b2ad9bf16b32ce

Modified Files
--------------
src/backend/statistics/mcv.c | 6 ------
1 file changed, 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2019-07-18 09:30:28 pgsql: Fix handling of opclauses in extended statistics
Previous Message Andres Freund 2019-07-18 02:51:50 pgsql: tableam: comment improvements.