Re: get_rule_expr RelabelType node does not print COLLATE clause

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: get_rule_expr RelabelType node does not print COLLATE clause
Date: 2025-07-19 15:46:00
Message-ID: 2310683.1752939960@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

jian he <jian(dot)universality(at)gmail(dot)com> writes:
> I found in some cases, we need to print COLLATE clauses for RelabelType Node.

I have a hard time getting excited about that. RelabelType
can only appear in plan trees, not in stored query trees,
so we do not have a requirement for 100% accuracy for dump/reload
purposes. I'm afraid that adding COLLATE would add more chatter
than value to EXPLAIN output.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-07-19 18:25:10 Re: MergeJoin beats HashJoin in the case of multiple hash clauses
Previous Message Tom Lane 2025-07-19 15:36:15 Re: Upgrade from Fedora 40 to Fedora 42, or from PostgreSQL 16.3 to PostgreSQL 16.9