aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2019-01-21 17:36:55 -0800
committerAndres Freund <andres@anarazel.de>2019-01-21 17:36:55 -0800
commit346ed70b0ad7efc574711a97812692dab4542712 (patch)
treedf7dfc97f786c3ed0e8ed841be5dd8304ea0ca0d /src/backend/parser/parse_utilcmd.c
parentebcc7bf949bae614cccc6b86e3ef9b926a6e2f99 (diff)
downloadpostgresql-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/parser/parse_utilcmd.c')
-rw-r--r--src/backend/parser/parse_utilcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c
index 404569f7df4..1084af2eedb 100644
--- a/src/backend/parser/parse_utilcmd.c
+++ b/src/backend/parser/parse_utilcmd.c
@@ -1504,7 +1504,7 @@ generateClonedIndexStmt(RangeVar *heapRel, Oid heapRelid, Relation source_idx,
iparam->nulls_ordering = SORTBY_NULLS_DEFAULT;
/* Adjust options if necessary */
- if (source_idx->rd_amroutine->amcanorder)
+ if (source_idx->rd_indam->amcanorder)
{
/*
* If it supports sort ordering, copy DESC and NULLS opts. Don't