summaryrefslogtreecommitdiff
path: root/src/backend/partitioning/partbounds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-04 14:32:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-04 14:32:19 -0400
commit38a2d703298c9a891dc9c24c0c087f417f555c70 (patch)
tree5c8dfa0662efa40432bf05f7f2029c2ad198bac4 /src/backend/partitioning/partbounds.c
parent3eb3d3e7822d5eecfcaba871a90263c6025c5216 (diff)
downloadpostgresql-38a2d703298c9a891dc9c24c0c087f417f555c70.tar.gz
Remove some more useless assignments.
Found with clang's scan-build tool. It also whines about a lot of other dead stores that we should *not* change IMO, either as a matter of style or future-proofing. But these places seem like clear oversights. Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com
Diffstat (limited to 'src/backend/partitioning/partbounds.c')
-rw-r--r--src/backend/partitioning/partbounds.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c
index 7553d55987..419c8fe845 100644
--- a/src/backend/partitioning/partbounds.c
+++ b/src/backend/partitioning/partbounds.c
@@ -4259,10 +4259,6 @@ get_qual_for_range(Relation parent, PartitionBoundSpec *spec,
return result;
}
- lower_or_start_datum = list_head(spec->lowerdatums);
- upper_or_start_datum = list_head(spec->upperdatums);
- num_or_arms = key->partnatts;
-
/*
* If it is the recursive call for default, we skip the get_range_nulltest
* to avoid accumulating the NullTest on the same keys for each partition.