postgresql/src/test
Tom Lane bf612fd3a4 Fix incorrect printing of queries with duplicated join names.
Given a query in which multiple JOIN nodes used the same alias
(which'd necessarily be in different sub-SELECTs), ruleutils.c
would assign the JOIN nodes distinct aliases for clarity ...
but then it forgot to print the modified aliases when dumping
the JOIN nodes themselves.  This results in a dump/reload hazard
for views, because the emitted query is flat-out incorrect:
Vars will be printed with table names that have no referent.

This has been wrong for a long time, so back-patch to all supported
branches.

Philip Dubé

Discussion: https://postgr.es/m/CY4PR2101MB080246F2955FF58A6ED1FEAC98140@CY4PR2101MB0802.namprd21.prod.outlook.com
2019-06-12 19:42:39 -04:00
..
examples Client-side fixes for delayed NOTIFY receipt. 2018-10-19 22:22:57 -04:00
isolation Ignore inherited temp relations from other sessions when truncating 2018-12-27 10:17:26 +09:00
locale Add a temp-install prerequisite to "check"-like targets not having one. 2017-11-05 18:54:52 -08:00
mb Revert "Fix broken multibyte regression tests." 2016-01-26 09:00:33 +09:00
modules Solve cross-version-upgrade testing problem induced by 1fb57af92. 2019-02-09 21:02:06 -05:00
perl Fix old TAP tests' method for selecting a valid PGPORT value. 2018-11-19 20:01:35 -05:00
regress Fix incorrect printing of queries with duplicated join names. 2019-06-12 19:42:39 -04:00
ssl Fix searchpath and module location for pg_rewind and ssl TAP tests 2019-02-07 11:10:59 -05:00
thread Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
Makefile Install TAP test infrastructure so it's available for extension testing. 2016-09-23 15:50:00 -04:00