Re: Want to use my own query-plan

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Want to use my own query-plan
Дата
Msg-id 1161393052.5190.11.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Want to use my own query-plan  (dakotali kasap <dakotalidavid@yahoo.com>)
Список pgsql-hackers
On Fri, 2006-10-20 at 16:05 -0700, dakotali kasap wrote:
> 1. How can I prepare my own query plan?

You can't: there is currently no public API for constructing plans by
hand. You could kludge something up by hand, but it would be pretty
fragile (internal planner data structures may well change between
releases).

> 2. How can I make postgresql execute my own query plan?

Once you have a valid Plan, you can just feed it to the executor as
normal (CreateQueryDesc(), ExecutorStart(), ExecutorRun(),
ExecutorEnd(), etc.)

-Neil





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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: adminpack and pg_catalog
Следующее
От: HS
Дата:
Сообщение: Re: hacking postgres hashjoin algorithm