Re: Getting all entries in a single block with ctid

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: Getting all entries in a single block with ctid
Дата
Msg-id 257a7802c5cbb4538bf45ccffa92edd5.squirrel@sq.gransy.com
обсуждение исходный текст
Ответ на Getting all entries in a single block with ctid  (Tore Halvorsen <tore.halvorsen@gmail.com>)
Ответы Re: Getting all entries in a single block with ctid  (Tore Halvorsen <tore.halvorsen@gmail.com>)
Список pgsql-general
On 16 Leden 2012, 15:07, Tore Halvorsen wrote:
> 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

WHERE ctid >= '(123,0)'::tid AND ctid < '(124,0)'::tid


Tomas


В списке pgsql-general по дате отправления:

Предыдущее
От: Tore Halvorsen
Дата:
Сообщение: Getting all entries in a single block with ctid
Следующее
От: Tore Halvorsen
Дата:
Сообщение: Re: Getting all entries in a single block with ctid