Skip to content

Commit 56b7695

Browse files
committed
Remove incorrect use of VARSIZE() on a toasted datum. We can just remove it
instead of fix it, since once we've set toast_action[i] to 'p' it no longer matters what toast_sizes[i] is. Greg Stark
1 parent 82d8ab6 commit 56b7695

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/access/heap/tuptoaster.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.77 2007/10/01 16:25:56 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.78 2007/10/11 18:19:58 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -811,9 +811,7 @@ toast_insert_or_update(Relation rel, HeapTuple newtup, HeapTuple oldtup,
811811
use_wal, use_fsm);
812812
if (toast_free[i])
813813
pfree(DatumGetPointer(old_value));
814-
815814
toast_free[i] = true;
816-
toast_sizes[i] = VARSIZE(toast_values[i]);
817815

818816
need_change = true;
819817
need_free = true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy