| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix oversight in new code for printing rangetable aliases. |
| Date: | 2012-10-12 20:14:53 |
| Message-ID: | E1TMldF-0004en-Ih@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix oversight in new code for printing rangetable aliases.
In commit 11e131854f8231a21613f834c40fe9d046926387, I missed the case of
a CTE RTE that doesn't have a user-defined alias, but does have an
alias assigned by set_rtable_names(). Per report from Peter Eisentraut.
While at it, refactor slightly to reduce code duplication.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/8b728e5c6e0ce6b6d6f54b92b390f14aa1aca6db
Modified Files
--------------
src/backend/utils/adt/ruleutils.c | 31 +++++++++++++++++++++----------
src/test/regress/expected/with.out | 24 ++++++++++++++++++++++++
src/test/regress/sql/with.sql | 11 +++++++++++
3 files changed, 56 insertions(+), 10 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-10-15 03:00:21 | pgsql: Split up process latch initialization for more-fail-soft behavio |
| Previous Message | Bruce Momjian | 2012-10-12 17:35:49 | pgsql: In our source code, make a copy of getopt's 'optarg' string argu |