Re: move 0 behaviour - Mailing list pgsql-hackers

From Tom Lane
Subject Re: move 0 behaviour
Date
Msg-id 21151.1036249595@sss.pgh.pa.us
Whole thread Raw
In response to Re: move 0 behaviour  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: move 0 behaviour  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> Bruce Momjian <pgman@candle.pha.pa.us> writes:
>>> I thought about that, but I need to fail if the cursor name is invalid. 
>> 
>> What has that got to do with it?

> If I put the 'return' for 0 MOVE/FETCH in utility.c's FetchStmt code, I
> will not get the checks for invalid cursor names, and I will not get the
> proper return tag.

Oh, I see.  Yeah, you're probably right, we have to change the calling
convention for PerformPortalFetch.

BTW, portalcmds.h also contains a comment that would need to be fixed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optimizer Question/Suggestion
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] What user to defaults execute as?