Content-Length: 276016 | pFad | http://github.com/postgrespro/postgres_cluster/commit/56b7695cf5517a78045798fd034ed9819e61a8ac

D4 Remove incorrect use of VARSIZE() on a toasted datum. We can just re… · postgrespro/postgres_cluster@56b7695 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/56b7695cf5517a78045798fd034ed9819e61a8ac

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy