postgresql/src
Tom Lane 43c2175121 Fix ruleutils.c's dumping of whole-row Vars in more contexts.
Commit 7745bc352 intended to ensure that whole-row Vars would be
printed with "::type" decoration in all contexts where plain
"var.*" notation would result in star-expansion, notably in
ROW() and VALUES() constructs.  However, it missed the case of
INSERT with a single-row VALUES, as reported by Timur Khanjanov.

Nosing around ruleutils.c, I found a second oversight: the
code for RowCompareExpr generates ROW() notation without benefit
of an actual RowExpr, and naturally it wasn't in sync :-(.
(The code for FieldStore also does this, but we don't expect that
to generate strictly parsable SQL anyway, so I left it alone.)

Back-patch to all supported branches.

Discussion: https://postgr.es/m/efaba6f9-4190-56be-8ff2-7a1674f9194f@intrans.baku.az
2022-01-13 17:49:46 -05:00
..
backend Fix ruleutils.c's dumping of whole-row Vars in more contexts. 2022-01-13 17:49:46 -05:00
bin Clean up messy API for src/port/thread.c. 2022-01-11 13:46:20 -05:00
common Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
fe_utils Update copyright for 2022 2022-01-07 19:04:57 -05:00
include Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
interfaces Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
makefiles Add NO_INSTALL option to pgxs 2021-05-27 13:58:29 +02:00
pl Update copyright for 2022 2022-01-07 19:04:57 -05:00
port Clean up messy API for src/port/thread.c. 2022-01-11 13:46:20 -05:00
template Further tweaking of PG_SYSROOT heuristics for macOS. 2021-01-20 12:07:23 -05:00
test Fix ruleutils.c's dumping of whole-row Vars in more contexts. 2022-01-13 17:49:46 -05:00
timezone Update copyright for 2022 2022-01-07 19:04:57 -05:00
tools Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Add support for LZ4 compression in pg_receivewal 2021-11-05 11:33:25 +09:00
Makefile.shlib AIX: Fix missing libpq symbols by respecting SHLIB_EXPORTS. 2021-09-06 11:27:59 -07:00
nls-global.mk Add errhint_plural() function and make use of it 2021-03-31 09:16:25 +02:00