mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Revert: Custom reloptions for table AM
This commit reverts9bd99f4c26and422041542fper review by Andres Freund. Discussion: https://postgr.es/m/20240410165236.rwyrny7ihi4ddxw4%40awork3.anarazel.de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user