Re: Reducing duplicativeness of EquivalenceClass-derived clauses - Mailing list pgsql-hackers

From Zhang Mingli
Subject Re: Reducing duplicativeness of EquivalenceClass-derived clauses
Date
Msg-id d3b254ff-adc1-4264-a9f3-c40be30d53eb@Spark
Whole thread Raw
In response to Re: Reducing duplicativeness of EquivalenceClass-derived clauses  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On Oct 27, 2022, 21:29 +0800, Tom Lane <tgl@sss.pgh.pa.us>, wrote:
Zhang Mingli <zmlpostgres@gmail.com> writes:
How about combine ec->ec_sources and ec->derives as one list for less codes?

Keeping them separate is required for the broken-EC code paths.
Even if it weren't, I wouldn't merge them just to save a couple
of lines of code --- I think it's useful to be able to tell which
clauses the EC started from.

regards, tom lane
Got it, thanks.

Regards,
Zhang Mingli

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reducing duplicativeness of EquivalenceClass-derived clauses
Next
From: Michel Pelletier
Date:
Subject: Re: Proposal to use JSON for Postgres Parser format