Fix bad formula in previous commit.

Robert Haas <rhaas@postgresql.org>

Commit: 5184f110aa4130ec87b0b3e0834292cd8cb1fd8a
Author: Robert Haas <rhaas@postgresql.org>
Date: 2019-12-17T20:53:17Z
Releases: 13.0
Fix bad formula in previous commit.

Commit d5406dea25b600408e7acf17d5a06e82d3ce6d0d used a slightly
novel, and wrong, approach to compute the length of the last
toast chunk. It worked fine unless the last chunk happened to
have the largest possible size.

Files

PathChange+/−
src/backend/access/common/detoast.c modified +2 −2