PREPARE/EXECUTE across backends?

Поиск
Список
Период
Сортировка
От Jingren Zhou
Тема PREPARE/EXECUTE across backends?
Дата
Msg-id BAY1-F52en4udvpKUpa000048bf@hotmail.com
обсуждение исходный текст
Ответы Re: PREPARE/EXECUTE across backends?  (Neil Conway <neilc@samurai.com>)
Re: PREPARE/EXECUTE across backends?  (Kris Jurka <books@ejurka.com>)
Список pgsql-hackers
Hi,

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?

Thanks

_________________________________________________________________
Instant message with integrated webcam using MSN Messenger 6.0. Try it now 
FREE!  http://msnmessenger-download.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FreeSpaceMap hashtable out of memory
Следующее
От: Neil Conway
Дата:
Сообщение: Re: PREPARE/EXECUTE across backends?