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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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