Re: [HACKERS] PREPARE

Thomas Lockhart <lockhart@alumni.caltech.edu>

From: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>
To: Michael Meskes <meskes@usa.net>
Cc: pgsql-hackers@hub.org
Date: 1998-11-17T13:45:19Z
Lists: pgsql-hackers
> I'm still holding back PREPARE for ecpg until I can think of a
> good solution. The best of course would be in the backend.

So what would it take to do this in the backend? I think the places
which would need to be touched fall into areas I either know about or am
starting to look at to implement the CASE clause.

We'd need:
  - a "named buffer" (or several) to hold the intermediate input
  - a way to pass in parameters or substitution arguments
  - a way to decide if previous parser/planner/executor
    results can be reused

What else?

                        - Tom