Re: How can i get record by data block not by sql?

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема Re: How can i get record by data block not by sql?
Дата
Msg-id 3FA6D7FE-5684-46FC-B5EF-8DA9E1BF324C@silentmedia.com
обсуждение исходный текст
Ответ на How can i get record by data block not by sql?  ("姜头" <104186179@qq.com>)
Список pgsql-performance
On Oct 3, 2011, at 6:52 AM, 姜头 wrote:

> How can i get record by data block not by sql?
>
> I want to read and write lots of data by data blocks and write record to a appointed data block and read it.
> so i can form a disk-resident tree by recording the block address. But i don't know  how to implement in postgresql.
> Is there system function can do this?
> Can someone help me?? Thank you very very much!!!!1

It sounds like you should look into the COPY command, or, if you're adventurous, the pg_bulkload project. They might
getyou the speed you're after, if not quite the implementation. But if what you're really after is to manipulate the
tablefiles directly - and I'm not sure why that would be a goal in itself - then perhaps SQL isn't for you. 

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

Предыдущее
От: "姜头"
Дата:
Сообщение: How can i get record by data block not by sql?
Следующее
От: Cédric Villemain
Дата:
Сообщение: Re: Query with order by and limit is very slow - wrong index used