1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Remove unused variable in non-assert-enabled build

Use field of structure in Assert directly

Jeff Janes
This commit is contained in:
Teodor Sigaev 2018-04-08 19:30:38 +03:00
parent 2fa55f26a0
commit 34602b0a1d

View File

@ -459,11 +459,10 @@ index_truncate_tuple(TupleDesc tupleDescriptor, IndexTuple olditup,
Datum values[INDEX_MAX_KEYS];
bool isnull[INDEX_MAX_KEYS];
IndexTuple newitup;
int indnatts = tupleDescriptor->natts;
Assert(indnatts <= INDEX_MAX_KEYS);
Assert(tupleDescriptor->natts <= INDEX_MAX_KEYS);
Assert(new_indnatts > 0);
Assert(new_indnatts < indnatts);
Assert(new_indnatts < tupleDescriptor->natts);
index_deform_tuple(olditup, tupleDescriptor, values, isnull);