Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56b7695

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 longermatters what toast_sizes[i] is. Greg Stark
1 parent82d8ab6 commit56b7695

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)

[8]ページ先頭

©2009-2025 Movatter.jp