Re: heapgettup() with NoMovementScanDirection unused in core? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: heapgettup() with NoMovementScanDirection unused in core?
Date
Msg-id 2845397.1674682297@sss.pgh.pa.us
Whole thread Raw
In response to Re: heapgettup() with NoMovementScanDirection unused in core?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2023-01-25 10:02:28 -0500, Tom Lane wrote:
>> We must have the NoMovementScanDirection option because count = 0
>> does not mean "do nothing", and I noted at least two call sites
>> that require it.

> I wonder if we'd be better off removing NoMovementScanDirection, and using
> count == (uint64)-1 for what NoMovementScanDirection is currently used for as
> an ExecutorRun parameter.  Seems less confusing to me - right now we have two
> parameters with non-obbvious meanings and interactions.

I'm down on that because it seems just about certain to break extensions
that call the executor, and it isn't adding enough clarity (IMHO) to
justify that.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: GUCs to control abbreviated sort keys
Next
From: Nathan Bossart
Date:
Subject: Re: pgsql: Rename contrib module basic_archive to basic_wal_module