postgresql/src/backend
Robert Haas 585e31fcb6 Don't generate fake "*SELECT*" or "*SELECT* %d" subquery aliases.
rte->alias should point only to a user-written alias, but in these
cases that principle was violated. Fixing this causes some regression
test output changes: wherever rte->alias previously had a value and
is now NULL, rte->eref is now set to a generated name rather than to
rte->alias; and the scheme used to generate eref names differs from
what we were doing for aliases.

The upshot is that instead of "*SELECT*" or "*SELECT* %d",
EXPLAIN will now emit "unnamed_subquery" or "unnamed_subquery_%d".
But that's a reasonable descriptor, and we were already producing
that in yet other cases, so this seems not too objectionable.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Co-authored-by: Robert Haas <rhaas@postgresql.org>
Discussion: https://postgr.es/m/CA+TgmoYSYmDA2GvanzPMci084n+mVucv0bJ0HPbs6uhmMN6HMg@mail.gmail.com
2025-09-08 11:50:33 -04:00
..
access Remove unneeded VM pin from VM replay 2025-09-08 10:22:42 -04:00
archive Update copyright for 2025 2025-01-01 11:21:55 -05:00
backup Expand usage of macros for protocol characters. 2025-08-06 13:37:00 -05:00
bootstrap Add new OID alias type regdatabase. 2025-06-30 15:38:54 -05:00
catalog Improve error message for duplicate labels when creating an enum type. 2025-09-02 13:50:56 -04:00
commands Post-commit review fixes for 228c370868. 2025-09-08 06:10:15 +00:00
executor Don't generate fake "*SELECT*" or "*SELECT* %d" subquery aliases. 2025-09-08 11:50:33 -04:00
foreign Track the number of presorted outer pathkeys in MergePath 2025-05-08 18:21:32 +09:00
jit Don't put library-supplied -L/-I switches before user-supplied ones. 2025-07-29 15:17:40 -04:00
lib Correct list of files in src/backend/lib/README 2025-06-27 09:31:23 +09:00
libpq Silence Valgrind leakage complaints in more-or-less-hackish ways. 2025-08-02 21:59:46 -04:00
main Force LC_COLLATE to C in postmaster. 2025-07-16 14:13:18 -07:00
nodes Add Asserts to validate prevbit values in bms_prev_member 2025-08-15 16:33:07 +12:00
optimizer Fix planner error when estimating SubPlan cost 2025-09-03 16:00:38 +09:00
parser Don't generate fake "*SELECT*" or "*SELECT* %d" subquery aliases. 2025-09-08 11:50:33 -04:00
partitioning Avoid leakage of zero-length arrays in partition_bounds_copy(). 2025-08-02 21:59:46 -04:00
po Translation updates 2025-05-05 12:04:49 +02:00
port Don't treat EINVAL from semget() as a hard failure. 2025-08-13 12:00:03 -04:00
postmaster Move dynamically-allocated LWLock tranche names to shared memory. 2025-09-03 13:57:48 -05:00
regex Control ctype behavior internally with a method table. 2025-07-01 07:44:47 -07:00
replication Post-commit review fixes for 228c370868. 2025-09-08 06:10:15 +00:00
rewrite Grab the low-hanging fruit from forcing USE_FLOAT8_BYVAL to true. 2025-08-13 17:18:22 -04:00
snowball Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
statistics Message style improvements 2025-08-28 09:09:26 +02:00
storage bufmgr: Remove freelist, always use clock-sweep 2025-09-05 12:25:59 -04:00
tcop Allow to log raw parse tree. 2025-09-06 07:49:51 +09:00
tsearch Remove useless/superfluous Datum conversions 2025-08-08 22:06:57 +02:00
utils Fix corruption of pgstats shared hashtable due to OOM failures 2025-09-08 15:52:23 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
meson.build meson: add and use stamp files for generated headers 2025-08-11 15:18:23 -04:00
nls.mk Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00