Hi! 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? Is my approach OK? The sure thing is that it is a messy task! Thanks in advance, ntinoas
"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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера