Commit 5936d25f authored by Tom Lane's avatar Tom Lane

Remove dead variables.

Commit 512c7356 left a couple of variables unused except for being set.
My compiler didn't whine about this, but some buildfarm members did.
parent f1175556
...@@ -336,13 +336,10 @@ var_eq_const(VariableStatData *vardata, Oid operator, ...@@ -336,13 +336,10 @@ var_eq_const(VariableStatData *vardata, Oid operator,
statistic_proc_security_check(vardata, statistic_proc_security_check(vardata,
(opfuncoid = get_opcode(operator)))) (opfuncoid = get_opcode(operator))))
{ {
Form_pg_statistic stats;
AttStatsSlot sslot; AttStatsSlot sslot;
bool match = false; bool match = false;
int i; int i;
stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
/* /*
* Is the constant "=" to any of the column's most common values? * Is the constant "=" to any of the column's most common values?
* (Although the given operator may not really be "=", we will assume * (Although the given operator may not really be "=", we will assume
...@@ -480,12 +477,9 @@ var_eq_non_const(VariableStatData *vardata, Oid operator, ...@@ -480,12 +477,9 @@ var_eq_non_const(VariableStatData *vardata, Oid operator,
} }
else if (HeapTupleIsValid(vardata->statsTuple)) else if (HeapTupleIsValid(vardata->statsTuple))
{ {
Form_pg_statistic stats;
double ndistinct; double ndistinct;
AttStatsSlot sslot; AttStatsSlot sslot;
stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
/* /*
* Search is for a value that we do not know a priori, but we will * Search is for a value that we do not know a priori, but we will
* assume it is not NULL. Estimate the selectivity as non-null * assume it is not NULL. Estimate the selectivity as non-null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment