Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7fdca53

Browse files
committed
When updating a tuple containing compressed-in-line fields, do not
decompress the existing fields unnecessarily.
1 parent b483ad8 commit 7fdca53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/access/heap/tuptoaster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.15 2001/01/23 04:32:20 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.16 2001/02/09 17:30:03 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -349,12 +349,12 @@ toast_insert_or_update(Relation rel, HeapTuple newtup, HeapTuple oldtup)
349349
toast_action[i] = 'p';
350350

351351
/* ----------
352-
* We took care of UPDATE above, so any TOASTed value we find
352+
* We took care of UPDATE above, so any external value we find
353353
* still in the tuple must be someone else's we cannot reuse.
354354
* Expand it to plain (and, probably, toast it again below).
355355
* ----------
356356
*/
357-
if (VARATT_IS_EXTENDED(DatumGetPointer(toast_values[i])))
357+
if (VARATT_IS_EXTERNAL(DatumGetPointer(toast_values[i])))
358358
{
359359
toast_values[i] = PointerGetDatum(heap_tuple_untoast_attr(
360360
(varattrib *)DatumGetPointer(toast_values[i])));

0 commit comments

Comments
 (0)