mirror of
https://github.com/postgres/postgres.git
synced 2025-10-15 05:46:52 +03:00
Revert: Custom reloptions for table AM
This commit reverts9bd99f4c26
and422041542f
per review by Andres Freund. Discussion: https://postgr.es/m/20240410165236.rwyrny7ihi4ddxw4%40awork3.anarazel.de
This commit is contained in:
@@ -85,9 +85,6 @@ create_ctas_internal(List *attrList, IntoClause *into)
|
||||
Datum toast_options;
|
||||
static char *validnsps[] = HEAP_RELOPT_NAMESPACES;
|
||||
ObjectAddress intoRelationAddr;
|
||||
const TableAmRoutine *tableam = NULL;
|
||||
Oid accessMethodId = InvalidOid;
|
||||
Relation rel;
|
||||
|
||||
/* This code supports both CREATE TABLE AS and CREATE MATERIALIZED VIEW */
|
||||
is_matview = (into->viewQuery != NULL);
|
||||
@@ -128,15 +125,7 @@ create_ctas_internal(List *attrList, IntoClause *into)
|
||||
validnsps,
|
||||
true, false);
|
||||
|
||||
rel = relation_open(intoRelationAddr.objectId, AccessShareLock);
|
||||
accessMethodId = table_relation_toast_am(rel);
|
||||
relation_close(rel, AccessShareLock);
|
||||
|
||||
if (OidIsValid(accessMethodId))
|
||||
{
|
||||
tableam = GetTableAmRoutineByAmOid(accessMethodId);
|
||||
(void) tableam_reloptions(tableam, RELKIND_TOASTVALUE, toast_options, NULL, true);
|
||||
}
|
||||
(void) heap_reloptions(RELKIND_TOASTVALUE, toast_options, true);
|
||||
|
||||
NewRelationCreateToastTable(intoRelationAddr.objectId, toast_options);
|
||||
|
||||
|
Reference in New Issue
Block a user