Why are there no inequality scans for ctid? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Why are there no inequality scans for ctid?
Date
Msg-id 20130628083756.GA18266@depesz.com
Whole thread Raw
Responses Re: Why are there no inequality scans for ctid?
List pgsql-general
Hi,
while working on removing bloat from some table, I had to use ltos of
logic simply because there are no (idnexable) inequality scans for
ctids.

Is it because just noone thought about adding them, or are there some
more fundamental issues?

I could imagine that things like:

select * from table where ctid @ '123' could return all rows from 123rd
page, or I could:
select * from table where ctid >= '(123,0)' and ctid < '(124,0)';

Having such operators work would greatly improve bloat reducing
options.

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/


pgsql-general by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: auto_explain & FDW
Next
From: Atri Sharma
Date:
Subject: Re: Why are there no inequality scans for ctid?