@@ -740,7 +740,6 @@ statext_mcv_serialize(MCVList * mcvlist, VacAttrStats **stats)
740
740
ITEM_INDEXES (item )[dim ] = (uint16 ) (value - values [dim ]);
741
741
742
742
/* check the index is within expected bounds */
743
- Assert (ITEM_INDEXES (item )[dim ] >= 0 );
744
743
Assert (ITEM_INDEXES (item )[dim ] < info [dim ].nvalues );
745
744
}
746
745
@@ -814,7 +813,7 @@ statext_mcv_deserialize(bytea *data)
814
813
* header.
815
814
*/
816
815
if (VARSIZE_ANY_EXHDR (data ) < offsetof(MCVList , items ))
817
- elog (ERROR , "invalid MCV size %ld (expected at least %zu)" ,
816
+ elog (ERROR , "invalid MCV size %zd (expected at least %zu)" ,
818
817
VARSIZE_ANY_EXHDR (data ), offsetof(MCVList , items ));
819
818
820
819
/* read the MCV list header */
@@ -870,7 +869,7 @@ statext_mcv_deserialize(bytea *data)
870
869
* to do this check first, before accessing the dimension info.
871
870
*/
872
871
if (VARSIZE_ANY_EXHDR (data ) < expected_size )
873
- elog (ERROR , "invalid MCV size %ld (expected %zu)" ,
872
+ elog (ERROR , "invalid MCV size %zd (expected %zu)" ,
874
873
VARSIZE_ANY_EXHDR (data ), expected_size );
875
874
876
875
/* Now it's safe to access the dimension info. */
@@ -896,7 +895,7 @@ statext_mcv_deserialize(bytea *data)
896
895
* check on size.
897
896
*/
898
897
if (VARSIZE_ANY_EXHDR (data ) != expected_size )
899
- elog (ERROR , "invalid MCV size %ld (expected %zu)" ,
898
+ elog (ERROR , "invalid MCV size %zd (expected %zu)" ,
900
899
VARSIZE_ANY_EXHDR (data ), expected_size );
901
900
902
901
/*
0 commit comments