aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/heaptoast.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-04-11 15:46:35 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-04-11 15:46:35 +0300
commitbc1e2092ebb857802a9713d0d3588079e2f0216a (patch)
treef55adc80b07150bcd7f5cbd50a9bfc89b3f301d6 /src/backend/access/heap/heaptoast.c
parent87840b9741864dfdb9f63b0056e2783cdb49b8a5 (diff)
downloadpostgresql-bc1e2092ebb857802a9713d0d3588079e2f0216a.tar.gz
postgresql-bc1e2092ebb857802a9713d0d3588079e2f0216a.zip
Revert: Custom reloptions for table AM
This commit reverts 9bd99f4c26 and 422041542f per review by Andres Freund. Discussion: https://postgr.es/m/20240410165236.rwyrny7ihi4ddxw4%40awork3.anarazel.de
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