Getting all entries in a single block with ctid

From: Tore Halvorsen <tore(dot)halvorsen(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Getting all entries in a single block with ctid
Date: 2012-01-16 14:07:54
Message-ID: CADGw-Sf5Jxs9FVOx1-whiTgFrPurFSvY-GJ3VqQ5Vfxt5b+DhQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

As I understand it, the ctid contains both the block number and an index is
this block.
Is there a way to fetch all the table entries from the same block?

E.g. something like this:

select * from foo where ctid like '(123,%'

or ... ctid.block = 123

--
Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul]
<demo> 2012 Tore Halvorsen || +052 0553034554

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomas Vondra 2012-01-16 14:20:21 Re: Getting all entries in a single block with ctid
Previous Message Cefull Lo 2012-01-16 13:50:42 Re: time zone problem