Re: troubleshooting pointers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: troubleshooting pointers
Date
Msg-id 12690.1021129073@sss.pgh.pa.us
Whole thread Raw
In response to Re: troubleshooting pointers  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> Tom Lane wrote:
>> It's not unlikely that those issues are exactly due to not having rescan
>> handled properly.  What misbehavior are you seeing?

> Hmm, that might just be it.

> When I select from a view based on a function which returns a base type, 
> I only get the first row. When I select from a view which is based on a 
> function returning a composite type, it triggers an assertion. I've 
> traced the latter down to a slot pointer which is reset to NULL 
> somewhere.

Um, that's probably not it then.  Rescan would only come into play for
a plan node that's being used as the inside of a join, or some other
contexts more complicated than this.  A simple view ought to make no
difference at all in the generated plan --- perhaps there's some bit
of the planner that you missed teaching about function RTEs or
FunctionScan plan nodes?

Anyway, I plan to review and apply your patch today, if I don't run
into any major problems.  Will look to see if I see a reason for the
view trouble.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Barry Lind
Date:
Subject: bug? in current cvs with bigint datatype
Next
From: cbbrowne@cbbrowne.com
Date:
Subject: Re: Native Win32, How about this?