summaryrefslogtreecommitdiff
path: root/src/backend/access/table/toast_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/table/toast_helper.c')
-rw-r--r--src/backend/access/table/toast_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/table/toast_helper.c b/src/backend/access/table/toast_helper.c
index 7532b4f8659..7381be8669c 100644
--- a/src/backend/access/table/toast_helper.c
+++ b/src/backend/access/table/toast_helper.c
@@ -135,9 +135,9 @@ toast_tuple_init(ToastTupleContext *ttc)
{
ttc->ttc_attr[i].tai_oldexternal = new_value;
if (att->attstorage == 'p')
- new_value = heap_tuple_untoast_attr(new_value);
+ new_value = detoast_attr(new_value);
else
- new_value = heap_tuple_fetch_attr(new_value);
+ new_value = detoast_external_attr(new_value);
ttc->ttc_values[i] = PointerGetDatum(new_value);
ttc->ttc_attr[i].tai_colflags |= TOASTCOL_NEEDS_FREE;
ttc->ttc_flags |= (TOAST_NEEDS_CHANGE | TOAST_NEEDS_FREE);