Re: unrecognized node type while displaying a Path due to dangling pointer
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Jeevan Chalke <jeevan.chalke@enterprisedb.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-07-12T02:23:34Z
Lists: pgsql-hackers
David Rowley <dgrowleyml@gmail.com> writes: > I've not taken the time to fully understand this, but from reading the > thread, I'm not immediately understanding why we can't just shallow > copy the Path from the other RelOptInfo and replace the parent before > using it in the upper RelOptInfo. Can you explain? I did think about that, but "shallow copy a Path" seems nontrivial because the Path structs are all different sizes. Maybe it is worth building some infrastructure to support that? regards, tom lane