When given a nonzero column number, pg_get_indexdef() is only supposed to
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Dec 2007 00:23:19 +0000 (00:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Dec 2007 00:23:19 +0000 (00:23 +0000)
commit740ee83b3216d5d15f2185c180edb8849ee07490
tree3ff57caa46bcd651635b5a3ae2b7b347a50cf96b
parent705343ec313a851fd0c575bdf6f8b23eb14599dd
When given a nonzero column number, pg_get_indexdef() is only supposed to
print the index key variable or expression for that column.  It was mistakenly
printing ASC/DESC/NULLS FIRST/NULLS LAST decoration too --- and not only for
the target column, but all columns.  Someday we should have an option to
extract that info (and the opclass decoration as well) for a single index
column ... but today is not that day.  Per bug #3829 and subsequent
discussion.
src/backend/utils/adt/ruleutils.c