pgsql: Fix bad formula in previous commit.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix bad formula in previous commit.
Date: 2019-12-17 20:56:37
Message-ID: E1ihJtV-0006iR-Ba@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5184f110aa4130ec87b0b3e0834292cd8cb1fd8a

Modified Files
--------------
src/backend/access/common/detoast.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2019-12-17 20:59:34 Re: pgsql: Code cleanup for toast_fetch_datum and toast_fetch_datum_slice.
Previous Message Tom Lane 2019-12-17 20:54:01 Re: pgsql: Code cleanup for toast_fetch_datum and toast_fetch_datum_slice.