aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-20 17:43:34 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-20 17:44:17 -0400
commit5b8e442953da0bf4950b86c7cb4a6117842aedf7 (patch)
tree4d1a34151ba809c27a1c4798478df7f817e8603a /src/backend/parser/parse_utilcmd.c
parent395fcac29906d22615ba68bd1dfa31daf691979e (diff)
downloadpostgresql-5b8e442953da0bf4950b86c7cb4a6117842aedf7.tar.gz
postgresql-5b8e442953da0bf4950b86c7cb4a6117842aedf7.zip
Make plan_cluster_use_sort cope with no IndexOptInfo for the target index.
The original coding assumed that such a case represents caller error, but actually get_relation_info will omit generating an IndexOptInfo for any index it thinks is unsafe to use. Therefore, handle this case by returning "true" to indicate that a seqscan-and-sort is the preferred way to implement the CLUSTER operation. New bug in 9.1, no backpatch needed. Per bug #5985 from Daniel Grace.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions