postgresql/src/backend
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
..
access vacuumlazy.c: fix "garbage tuples" reference. 2022-01-12 14:13:35 -08:00
bootstrap Update copyright for 2022 2022-01-07 19:04:57 -05:00
catalog Fix memory leak in indexUnchanged hint mechanism. 2022-01-12 15:41:04 -08:00
commands Improve error message for missing extension. 2022-01-11 14:22:00 -05:00
executor Fix memory leak in indexUnchanged hint mechanism. 2022-01-12 15:41:04 -08:00
foreign Update copyright for 2022 2022-01-07 19:04:57 -05:00
jit Update copyright for 2022 2022-01-07 19:04:57 -05:00
lib Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
main Update copyright for 2022 2022-01-07 19:04:57 -05:00
nodes Fix memory leak in indexUnchanged hint mechanism. 2022-01-12 15:41:04 -08:00
optimizer Consider fractional paths in generate_orderedappend_paths 2022-01-12 22:27:24 +01:00
parser Update copyright for 2022 2022-01-07 19:04:57 -05:00
partitioning Update copyright for 2022 2022-01-07 19:04:57 -05:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Update copyright for 2022 2022-01-07 19:04:57 -05:00
postmaster Enhance pg_log_backend_memory_contexts() for auxiliary processes. 2022-01-11 23:19:59 +09:00
regex Update copyright for 2022 2022-01-07 19:04:57 -05:00
replication Improve error handling of cryptohash computations 2022-01-11 09:55:16 +09:00
rewrite Update copyright for 2022 2022-01-07 19:04:57 -05:00
snowball Update copyright for 2022 2022-01-07 19:04:57 -05:00
statistics Update copyright for 2022 2022-01-07 19:04:57 -05:00
storage Improve warning message in pg_signal_backend() 2022-01-11 12:56:26 -05:00
tcop Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsearch Update copyright for 2022 2022-01-07 19:04:57 -05:00
utils Fix ruleutils.c's dumping of whole-row Vars in more contexts. 2022-01-13 17:49:46 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Report progress of startup operations that take a long time. 2021-10-25 11:51:57 -04:00