X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B867329CB7 for ; Mon, 4 Oct 2004 20:02:58 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22473-01 for ; Mon, 4 Oct 2004 19:02:53 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id BE0CF32A4E5 for ; Mon, 4 Oct 2004 20:02:52 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i94J2pxN001406; Mon, 4 Oct 2004 15:02:51 -0400 (EDT) To: "Chengkai Li" Cc: pgsql-docs@postgresql.org Subject: Re: directly construct a query plan In-reply-to: References: Comments: In-reply-to "Chengkai Li" message dated "Mon, 04 Oct 2004 12:42:05 -0500" Date: Mon, 04 Oct 2004 15:02:51 -0400 Message-ID: <1405.1096916571@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/9 X-Sequence-Number: 2578 "Chengkai Li" 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