Re: Reducing duplicativeness of EquivalenceClass-derived clauses

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zhang Mingli <zmlpostgres(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Reducing duplicativeness of EquivalenceClass-derived clauses
Date: 2022-10-27 13:29:02
Message-ID: 644164.1666877342@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zhang Mingli <zmlpostgres(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhang Mingli 2022-10-27 13:37:04 Re: Reducing duplicativeness of EquivalenceClass-derived clauses
Previous Message Tom Lane 2022-10-27 13:24:46 Re: [PROPOSAL] : Use of ORDER BY clause in insert.sql