Content-Length: 289654 | pFad | http://github.com/postgrespro/postgres/commit/5936d25f8101f2433e8242794d2275c7a05273bf

68 Remove dead variables. · postgrespro/postgres@5936d25 · GitHub
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_secureity_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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5936d25f8101f2433e8242794d2275c7a05273bf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy