Thread: pgsql: Remove quick path in ExecInitPartitionInfo for equal tupdescs

pgsql: Remove quick path in ExecInitPartitionInfo for equal tupdescs

From
Alvaro Herrera
Date:
Remove quick path in ExecInitPartitionInfo for equal tupdescs

I added this "optimization" on top of Amit Langote's 158b7bc6d779, but
the quick path is never taken because the partition uses a different
pg_type oid than its parent table (causing equalTupleDescs to return
false).  Changing that requires more analysis and is too considered
dangerous at this point in the cycle, so revert it.

We might make it work someday, but not for pg11.

Discussion: https://postgr.es/m/825031be-942c-8c24-6163-13c27f217a3d@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/79b2e52615faa768d8436c1795e445541460e9d2

Modified Files
--------------
src/backend/executor/execPartition.c | 153 ++++++++++++++++-------------------
1 file changed, 68 insertions(+), 85 deletions(-)