Skip to content

Commit 5936d25

Browse files
committed
Remove dead variables.
Commit 512c735 left a couple of variables unused except for being set. My compiler didn't whine about this, but some buildfarm members did.
1 parent f117555 commit 5936d25

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/backend/utils/adt/selfuncs.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,10 @@ var_eq_const(VariableStatData *vardata, Oid operator,
336336
statistic_proc_security_check(vardata,
337337
(opfuncoid = get_opcode(operator))))
338338
{
339-
Form_pg_statistic stats;
340339
AttStatsSlot sslot;
341340
bool match = false;
342341
int i;
343342

344-
stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
345-
346343
/*
347344
* Is the constant "=" to any of the column's most common values?
348345
* (Although the given operator may not really be "=", we will assume
@@ -480,12 +477,9 @@ var_eq_non_const(VariableStatData *vardata, Oid operator,
480477
}
481478
else if (HeapTupleIsValid(vardata->statsTuple))
482479
{
483-
Form_pg_statistic stats;
484480
double ndistinct;
485481
AttStatsSlot sslot;
486482

487-
stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
488-
489483
/*
490484
* Search is for a value that we do not know a priori, but we will
491485
* assume it is not NULL. Estimate the selectivity as non-null

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy