diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-02 11:26:59 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-02 11:29:00 +0300 |
commit | 867cc7b6ddb9d998103688a56048fe9a1ddd972a (patch) | |
tree | 401d95630a475b33df8af26b74a0cc6c819106bf /src/backend/utils/cache/relcache.c | |
parent | 667e65aac354975c6f8090c6146fceb8d7b762d6 (diff) | |
download | postgresql-867cc7b6ddb9d998103688a56048fe9a1ddd972a.tar.gz postgresql-867cc7b6ddb9d998103688a56048fe9a1ddd972a.zip |
Revert "Custom reloptions for table AM"
This reverts commit c95c25f9af4bc77f2f66a587735c50da08c12b37 due to multiple
design issues spotted after commit.
Reported-by: Jeff Davis
Discussion: https://postgr.es/m/11550b536211d5748bb2865ed6cb3502ff073bf7.camel%40j-davis.com
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 039c0d3eef4..1f419c2a6dd 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -33,7 +33,6 @@ #include "access/htup_details.h" #include "access/multixact.h" #include "access/parallel.h" -#include "access/relation.h" #include "access/reloptions.h" #include "access/sysattr.h" #include "access/table.h" @@ -465,7 +464,6 @@ RelationParseRelOptions(Relation relation, HeapTuple tuple) { bytea *options; amoptions_function amoptsfn; - const TableAmRoutine *tableam = NULL; relation->rd_options = NULL; @@ -480,7 +478,6 @@ RelationParseRelOptions(Relation relation, HeapTuple tuple) case RELKIND_VIEW: case RELKIND_MATVIEW: case RELKIND_PARTITIONED_TABLE: - tableam = relation->rd_tableam; amoptsfn = NULL; break; case RELKIND_INDEX: @@ -496,8 +493,7 @@ RelationParseRelOptions(Relation relation, HeapTuple tuple) * we might not have any other for pg_class yet (consider executing this * code for pg_class itself) */ - options = extractRelOptions(tuple, GetPgClassDescriptor(), - tableam, amoptsfn); + options = extractRelOptions(tuple, GetPgClassDescriptor(), amoptsfn); /* * Copy parsed data into CacheMemoryContext. To guard against the |