aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/heaptoast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/heap/heaptoast.c')
-rw-r--r--src/backend/access/heap/heaptoast.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/backend/access/heap/heaptoast.c b/src/backend/access/heap/heaptoast.c
index cffee7e1b7a..a420e165304 100644
--- a/src/backend/access/heap/heaptoast.c
+++ b/src/backend/access/heap/heaptoast.c
@@ -32,13 +32,6 @@
#include "access/toast_internals.h"
#include "utils/fmgroids.h"
-/*
- * HeapGetToastTupleTarget
- * Returns the heap relation's toast_tuple_target. Note multiple eval of argument!
- */
-#define HeapGetToastTupleTarget(relation, defaulttarg) \
- ((HeapRdOptions *) (relation)->rd_options ? \
- ((HeapRdOptions *) (relation)->rd_options)->toast_tuple_target : (defaulttarg))
/* ----------
* heap_toast_delete -
@@ -181,7 +174,7 @@ heap_toast_insert_or_update(Relation rel, HeapTuple newtup, HeapTuple oldtup,
hoff += BITMAPLEN(numAttrs);
hoff = MAXALIGN(hoff);
/* now convert to a limit on the tuple data size */
- maxDataLen = HeapGetToastTupleTarget(rel, TOAST_TUPLE_TARGET) - hoff;
+ maxDataLen = RelationGetToastTupleTarget(rel, TOAST_TUPLE_TARGET) - hoff;
/*
* Look for attributes with attstorage EXTENDED to compress. Also find