aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/selfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-03 20:35:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-03 20:35:52 -0400
commit5936d25f8101f2433e8242794d2275c7a05273bf (patch)
tree12bf933d77000ecdd4bc513d49de3f2ad1ec542c /src/backend/utils/adt/selfuncs.c
parentf1175556a17a193395326f45a3e595b4aa3a9eff (diff)
downloadpostgresql-5936d25f8101f2433e8242794d2275c7a05273bf.tar.gz
postgresql-5936d25f8101f2433e8242794d2275c7a05273bf.zip
Remove dead variables.
Commit 512c7356b left a couple of variables unused except for being set. My compiler didn't whine about this, but some buildfarm members did.
Diffstat (limited to 'src/backend/utils/adt/selfuncs.c')
-rw-r--r--src/backend/utils/adt/selfuncs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c
index 52d0e48995a..300a8ff7e54 100644
--- a/src/backend/utils/adt/selfuncs.c
+++ b/src/backend/utils/adt/selfuncs.c
@@ -336,13 +336,10 @@ var_eq_const(VariableStatData *vardata, Oid operator,
statistic_proc_security_check(vardata,
(opfuncoid = get_opcode(operator))))
{
- Form_pg_statistic stats;
AttStatsSlot sslot;
bool match = false;
int i;
- stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
-
/*
* Is the constant "=" to any of the column's most common values?
* (Although the given operator may not really be "=", we will assume
@@ -480,12 +477,9 @@ var_eq_non_const(VariableStatData *vardata, Oid operator,
}
else if (HeapTupleIsValid(vardata->statsTuple))
{
- Form_pg_statistic stats;
double ndistinct;
AttStatsSlot sslot;
- stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
-
/*
* 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