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

PREPARE/EXECUTE across backends?

From: "Jingren Zhou" <jrzhoupro(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PREPARE/EXECUTE across backends?
Date: 2003-10-02 00:25:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

From the document, it seems that PREPARE/EXECUTE works only in the same 
session. I am wondering whether postgres can prepare a query (save the plan) 
for difference backends.

I am working on a project which requires executing "psql -c 'query'" in 
command line multiple times. Since the performance is critical, it would be 
nice to prepare the same query first to avoid being parsed/optimized each 
time. But psql opens a new backend each time, it looks like that 
PREPARE/EXECUTE doesn't work. Is there any workaround?


Instant message with integrated webcam using MSN Messenger 6.0. Try it now 


pgsql-hackers by date

Next:From: Neil ConwayDate: 2003-10-02 01:01:23
Subject: Re: PREPARE/EXECUTE across backends?
Previous:From: Tom LaneDate: 2003-10-01 23:24:00
Subject: Re: FreeSpaceMap hashtable out of memory

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