Daniel Gustafsson <daniel(at)yesql(dot)se> writes:
> On 20 May 2022, at 19:05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I thought of a compromise position that's not hard to implement:
>> change the behavior only if the SELECT output column name is *possibly*
>> visible elsewhere, which it is not in (for example) an EXISTS subquery.
> Nice one! I think that's even better than the previous version actually.
> Skimming the patch it seems like a reasonable approach.
Pushed, thanks for looking.
regards, tom lane