Re: Improving default column names/aliases of subscript text expressions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Improving default column names/aliases of subscript text expressions
Date: 2024-12-16 20:09:21
Message-ID: 2008714.1734379761@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jelte Fennema-Nio <postgres(at)jeltef(dot)nl> writes:
> 4. For the custom type that I'm implementing the subscripting for, I
> really don't want such a prefix.

Hm. If we made this behavior type-specific then you could have what
you want without having to break any existing expectations at all.

However, after thinking a little longer I seem to recall that we've
previously looked into the idea of deriving the default aliases from
the post-parse-analysis tree. We gave up because there were too many
cases where the behavior would change, or at least it looked unduly
painful to prevent that. For instance, something that looks like a
function call in the raw tree could parse to half a dozen different
kinds of nodes. So I'm not sure how we get there from here.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-12-16 20:25:52 Re: improve EXPLAIN for wide tables
Previous Message Tom Lane 2024-12-16 19:57:59 Re: IANA timezone abbreviations versus timezone_abbreviations