Re: unrecognized node type while displaying a Path due to dangling pointer - Mailing list pgsql-hackers

From Tom Lane
Subject Re: unrecognized node type while displaying a Path due to dangling pointer
Date
Msg-id 2480357.1689073241@sss.pgh.pa.us
Whole thread Raw
In response to Re: unrecognized node type while displaying a Path due to dangling pointer  (Jeevan Chalke <jeevan.chalke@enterprisedb.com>)
Responses Re: unrecognized node type while displaying a Path due to dangling pointer
Re: unrecognized node type while displaying a Path due to dangling pointer
List pgsql-hackers
Jeevan Chalke <jeevan.chalke@enterprisedb.com> writes:
> Attached patch.

I would be astonished if this fixes anything.  The code still doesn't
know which paths are referenced by which other ones, and so the place
where we free a previously-added path can't know what to do.

I've speculated about adding some form of reference counting to paths
(maybe just a "pin" flag rather than a full refcount) so that we could
be smarter about this.  The existing kluge for "don't free IndexPaths"
could be replaced by setting the pin mark on any IndexPath that we
make a bitmap path from.  Up to now it hasn't seemed necessary to
generalize that hack, but maybe it's time.  Can you show a concrete
case where we are freeing a still-referenced path?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: COPY table FROM STDIN via SPI
Next
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Support logical replication of DDLs