Re: Storing a plan to disc...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Storing a plan to disc...
Дата
Msg-id 10503.1093617263@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Storing a plan to disc...  ("Katsaros Kwn/nos" <ntinos@aueb.gr>)
Список pgsql-novice
"Katsaros Kwn/nos" <ntinos@aueb.gr> writes:
> I'm new to PostgreSQL (and C) and what I'm trying to do is to store a
> query plan on disc (in a binary file).
> My approach is to use SPI functions to get the query plan and then
> transform it into a 'storable' format (Replacing the pointers with
> actual values).
> Is there any other way to do this?

I'd look at extending the outfuncs/readfuncs code to deal with all the
node types used in plan trees, and then store text strings instead of
binary.

            regards, tom lane

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

Предыдущее
От: Sean Davis
Дата:
Сообщение: Aggregate question
Следующее
От: Doug Silver
Дата:
Сообщение: Tracking down "idle in transaction" processes