Why are there no inequality scans for ctid?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Why are there no inequality scans for ctid?
Date: 2013-06-28 08:37:57
Message-ID: 20130628083756.GA18266@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Atri Sharma 2013-06-28 08:51:10 Re: Why are there no inequality scans for ctid?
Previous Message Albe Laurenz 2013-06-28 08:04:56 Re: auto_explain & FDW