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

Commit7fdca53

Browse files
committed
When updating a tuple containing compressed-in-line fields, do not
decompress the existing fields unnecessarily.
1 parentb483ad8 commit7fdca53

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 anyTOASTed value we find
352+
* We took care of UPDATE above, so anyexternal 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)

[8]ページ先頭

©2009-2025 Movatter.jp