Skip site navigation (1) Skip section navigation (2)

Re: Storing a plan to disc...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Katsaros Kwn/nos" <ntinos(at)aueb(dot)gr>
Cc: PostgreSQL novice list <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Storing a plan to disc...
Date: 2004-08-27 14:34:23
Message-ID: 10503.1093617263@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"Katsaros Kwn/nos" <ntinos(at)aueb(dot)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

In response to

pgsql-novice by date

Next:From: Doug SilverDate: 2004-08-27 18:12:18
Subject: Tracking down "idle in transaction" processes
Previous:From: Sean DavisDate: 2004-08-27 10:54:03
Subject: Aggregate question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group