mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Rename RelationData.rd_amroutine to rd_indam.
The upcoming table AM support makes rd_amroutine to generic, as its only about index AMs. The new name makes that clear, and is shorter to boot. Author: Andres Freund Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
This commit is contained in:
@ -11121,7 +11121,7 @@ ATExecSetRelOptions(Relation rel, List *defList, AlterTableType operation,
|
||||
break;
|
||||
case RELKIND_INDEX:
|
||||
case RELKIND_PARTITIONED_INDEX:
|
||||
(void) index_reloptions(rel->rd_amroutine->amoptions, newOptions, true);
|
||||
(void) index_reloptions(rel->rd_indam->amoptions, newOptions, true);
|
||||
break;
|
||||
default:
|
||||
ereport(ERROR,
|
||||
@ -12876,7 +12876,7 @@ ATExecReplicaIdentity(Relation rel, ReplicaIdentityStmt *stmt, LOCKMODE lockmode
|
||||
RelationGetRelationName(indexRel),
|
||||
RelationGetRelationName(rel))));
|
||||
/* The AM must support uniqueness, and the index must in fact be unique. */
|
||||
if (!indexRel->rd_amroutine->amcanunique ||
|
||||
if (!indexRel->rd_indam->amcanunique ||
|
||||
!indexRel->rd_index->indisunique)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
|
Reference in New Issue
Block a user