aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-02-25 12:01:12 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-02-25 12:01:12 -0500
commite9f1c01b71dcd11c86fc8516c06dae2e784b96fd (patch)
tree7f4466ba76b582642e7b8222357afd40dabc05fd /src/backend/utils/adt/array_userfuncs.c
parent8794bf1ca164e1be1554197b46c9ffc62d162fb8 (diff)
downloadpostgresql-e9f1c01b71dcd11c86fc8516c06dae2e784b96fd.tar.gz
postgresql-e9f1c01b71dcd11c86fc8516c06dae2e784b96fd.zip
Fix dumping of views that are just VALUES(...) but have column aliases.
The "simple" path for printing VALUES clauses doesn't work if we need to attach nondefault column aliases, because there's noplace to do that in the minimal VALUES() syntax. So modify get_simple_values_rte() to detect nondefault aliases and treat that as a non-simple case. This further exposes that the "non-simple" path never actually worked; it didn't produce valid syntax. Fix that too. Per bug #12789 from Curtis McEnroe, and analysis by Andrew Gierth. Back-patch to all supported branches. Before 9.3, this also requires back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1 that created get_simple_values_rte() to begin with; inserting the extra test into the old factorization of that logic would've been too messy.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions