X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E2C7B3A4D8F for ; Mon, 24 Jan 2005 17:20:42 +0000 (GMT) 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 68842-02 for ; Mon, 24 Jan 2005 17:20:38 +0000 (GMT) Received: from smarthost1.mail.uk.easynet.net (smarthost1.mail.uk.easynet.net [212.135.6.11]) by svr1.postgresql.org (Postfix) with ESMTP id 1E0433A55B9 for ; Mon, 24 Jan 2005 17:20:37 +0000 (GMT) Received: from [195.40.158.200] (helo=dev001_pdc.Dev.cadcorp.net) by smarthost1.mail.uk.easynet.net with esmtp (Exim 4.10) id 1Ct7tE-000FhE-00 for pgsql-sql@postgresql.org; Mon, 24 Jan 2005 17:20:36 +0000 content-class: urn:content-classes:message Subject: Re: How to find out programmatically whether a query on a view will use an index? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Jan 2005 17:22:00 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <37936EEC582B394A9E1AA951991A551609D276@dev001_pdc.Dev.cadcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] How to find out programmatically whether a query on a view will use an index? Thread-Index: AcUCOCmrnaCjQVx6SgKVNYsk84U+QQAAOi2A From: =?iso-8859-1?Q?Martin_Sch=E4fer?= To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.273 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/211 X-Sequence-Number: 19999 > > Is there no way to get a machine readable query plan? >=20 > No, and no such API is likely to be defined in the future either, > because we reserve the right to change plan structures at any time. How about a list of the indices used in a query? That alone would already be very useful. Martin