diff options
author | Andres Freund <andres@anarazel.de> | 2019-01-21 17:36:55 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2019-01-21 17:36:55 -0800 |
commit | 346ed70b0ad7efc574711a97812692dab4542712 (patch) | |
tree | df7dfc97f786c3ed0e8ed841be5dd8304ea0ca0d /src/backend/commands/cluster.c | |
parent | ebcc7bf949bae614cccc6b86e3ef9b926a6e2f99 (diff) | |
download | postgresql-346ed70b0ad7efc574711a97812692dab4542712.tar.gz postgresql-346ed70b0ad7efc574711a97812692dab4542712.zip |
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
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r-- | src/backend/commands/cluster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 5c0f238c7e2..ec1d6b6f119 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -444,7 +444,7 @@ check_index_is_clusterable(Relation OldHeap, Oid indexOid, bool recheck, LOCKMOD RelationGetRelationName(OldHeap)))); /* Index AM must allow clustering */ - if (!OldIndex->rd_amroutine->amclusterable) + if (!OldIndex->rd_indam->amclusterable) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot cluster on index \"%s\" because access method does not support clustering", |