Fix bad formula in previous commit.
authorRobert Haas <rhaas@postgresql.org>
Tue, 17 Dec 2019 20:53:17 +0000 (15:53 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 17 Dec 2019 20:53:17 +0000 (15:53 -0500)
commit5184f110aa4130ec87b0b3e0834292cd8cb1fd8a
tree22a68c0a88b09175903f096b6d986fdc064dc542
parentd5406dea25b600408e7acf17d5a06e82d3ce6d0d
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.
src/backend/access/common/detoast.c