diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-11 15:46:35 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-11 15:46:35 +0300 |
commit | bc1e2092ebb857802a9713d0d3588079e2f0216a (patch) | |
tree | f55adc80b07150bcd7f5cbd50a9bfc89b3f301d6 /src/backend/access/table/tableamapi.c | |
parent | 87840b9741864dfdb9f63b0056e2783cdb49b8a5 (diff) | |
download | postgresql-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/table/tableamapi.c')
-rw-r--r-- | src/backend/access/table/tableamapi.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/backend/access/table/tableamapi.c b/src/backend/access/table/tableamapi.c index d9e23ef3175..55b8caeadf2 100644 --- a/src/backend/access/table/tableamapi.c +++ b/src/backend/access/table/tableamapi.c @@ -13,11 +13,9 @@ #include "access/tableam.h" #include "access/xact.h" -#include "catalog/pg_am.h" #include "commands/defrem.h" #include "miscadmin.h" #include "utils/guc_hooks.h" -#include "utils/syscache.h" /* @@ -100,29 +98,6 @@ GetTableAmRoutine(Oid amhandler) return routine; } -/* - * GetTableAmRoutineByAmOid - * Given the table access method oid get its TableAmRoutine struct, which - * will be palloc'd in the caller's memory context. - */ -const TableAmRoutine * -GetTableAmRoutineByAmOid(Oid amoid) -{ - HeapTuple ht_am; - Form_pg_am amrec; - const TableAmRoutine *tableam = NULL; - - ht_am = SearchSysCache1(AMOID, ObjectIdGetDatum(amoid)); - if (!HeapTupleIsValid(ht_am)) - elog(ERROR, "cache lookup failed for access method %u", - amoid); - amrec = (Form_pg_am) GETSTRUCT(ht_am); - - tableam = GetTableAmRoutine(amrec->amhandler); - ReleaseSysCache(ht_am); - return tableam; -} - /* check_hook: validate new default_table_access_method */ bool check_default_table_access_method(char **newval, void **extra, GucSource source) |