Re: [BUGS] Segfault in 9.0 inlining SRF - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] Segfault in 9.0 inlining SRF
Date
Msg-id 16881.1288027716@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] Segfault in 9.0 inlining SRF  (Brendan Jurd <direvus@gmail.com>)
List pgsql-hackers
Brendan Jurd <direvus@gmail.com> writes:
> This whole business of passing around global pointers while switching
> memory contexts seems like an optimal breeding-ground for bugs.

Yeah.  If it were to get significantly more complicated than this,
the best solution IMO would be to give up on trying to use a temporary
memory context during function inlining, and just accept that whatever
memory we chew up there is going to be leaked for the duration of
planning.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Range Types, discrete and/or continuous
Next
From: Greg Stark
Date:
Subject: Re: ask for review of MERGE