> On Apr 23, 2021, at 11:29 AM, Robert Haas <robertmh...@gmail.com> wrote: > > + expected_size = chunk_seq < last_chunk_seq ? TOAST_MAX_CHUNK_SIZE > + : extsize % TOAST_MAX_CHUNK_SIZE; > > What's different? for one thing, if a sequence of chunks happens to fit perfectly, the final chunk will have size TOAST_MAX_CHUNK_SIZE, but you're expecting no larger than one less than that, given how modulo arithmetic works. — Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Mark Dilger
- Re: pg_amcheck contrib application Robert Haas
- Re: pg_amcheck contrib application Mark Dilger