diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-01-20 23:13:01 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-01-20 23:13:01 +0000 |
commit | fcf4b146c697624a1b322def06db6b6aa1f1f481 (patch) | |
tree | 1af74f64a50c4f338dd2d3154e33a79bfb839caa /src/backend/commands/indexcmds.c | |
parent | c82cc604f5cf860a12b95ce114311ba72854a536 (diff) | |
download | postgresql-fcf4b146c697624a1b322def06db6b6aa1f1f481.tar.gz postgresql-fcf4b146c697624a1b322def06db6b6aa1f1f481.zip |
Simplify pg_am representation of ordering-capable access methods:
provide just a boolean 'amcanorder', instead of fields that specify the
sort operator strategy numbers. We have decided to require ordering-capable
AMs to use btree-compatible strategy numbers, so the old fields are
overkill (and indeed misleading about what's allowed).
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r-- | src/backend/commands/indexcmds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index bbaa34f758a..2d51dfb11fe 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.152 2007/01/09 02:14:11 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.153 2007/01/20 23:13:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -295,8 +295,7 @@ DefineIndex(RangeVar *heapRelation, errmsg("access method \"%s\" does not support multicolumn indexes", accessMethodName))); - amcanorder = (accessMethodForm->amorderstrategy > 0); - + amcanorder = accessMethodForm->amcanorder; amoptions = accessMethodForm->amoptions; ReleaseSysCache(tuple); |