X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C5A159DC857 for ; Thu, 16 Feb 2006 17:11:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95929-03 for ; Thu, 16 Feb 2006 17:11:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from nelson.osl.com (216-21-133-120.ip.van.radiant.net [216.21.133.120]) by postgresql.org (Postfix) with ESMTP id 913B59DC83B for ; Thu, 16 Feb 2006 17:11:44 -0400 (AST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Re: Using EXPLAIN-ANALYZE Date: Thu, 16 Feb 2006 13:11:44 -0800 Message-ID: <144D12D7DD4EC04F99241498BB4EEDCC220A9E@nelson.osl.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] Using EXPLAIN-ANALYZE Thread-Index: AcYzOTKdxEtAg5bvTPewm0q+ZPr6oQAA9inwAAAWloA= From: "Owen Jacobson" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.103 required=5 tests=[AWL=0.103] X-Spam-Score: 0.103 X-Spam-Level: X-Archive-Number: 200602/213 X-Sequence-Number: 24223 Kashmira Patel wrote: > So I would have to put in lots of rows of data in the table=20 > before using the explain command?=20 No, but PostgreSQL's query planner may take a different approach for a = small table than a large one. The statistics used are generated during = VACUUM ANALYZE/VACUUM FULL operations and, under 8.1, are probably = maintained by autovacuum, but you can always vacuum manually and see if = that changes the query plan. -Owen