directly construct a query plan

Started by Steve Jacksonover 21 years ago3 messagesdocs
Jump to latest
#1Steve Jackson
dbresearch@hotmail.com

Hello everyone,
I plan to directly construct a query plan without going through the query
optimizer, by manipulating the various data structures for representing
query plan tree and parse tree. Is there any facility inside/outside
postgresql that can be of help? Is there any known issue/difficulty related
to this?

Thanks!

Steve

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Steve Jackson (#1)
Re: directly construct a query plan

"Chengkai Li" <dbresearch@hotmail.com> writes:

I plan to directly construct a query plan without going through the query
optimizer, by manipulating the various data structures for representing
query plan tree and parse tree. Is there any facility inside/outside
postgresql that can be of help? Is there any known issue/difficulty related
to this?

Only that your code *will* break in each future release, because we have
no hesitation about whacking those data structures around ...

regards, tom lane

#3Steve Jackson
dbresearch@hotmail.com
In reply to: Tom Lane (#2)
Re: directly construct a query plan

Hi Tom,
Thanks!

So if I want to try out some new join algorithm, or even new type of plan
nodes, before I feel the algorithms/nodes are so good that I want to enable
the optimizer to consider them as options, is there any better way to
experiment with possible new plans?

regards,
Steve

I plan to directly construct a query plan without going through the

query

optimizer, by manipulating the various data structures for representing
query plan tree and parse tree. Is there any facility inside/outside
postgresql that can be of help? Is there any known issue/difficulty

related

to this?

Only that your code *will* break in each future release, because we have
no hesitation about whacking those data structures around ...

regards, tom lane

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement