Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-3
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)