X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A694D5287D for ; Thu, 14 Jul 2005 19:46:32 -0300 (ADT) 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 19756-03 for ; Thu, 14 Jul 2005 22:46:23 +0000 (GMT) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by svr1.postgresql.org (Postfix) with ESMTP id 64DA652814 for ; Thu, 14 Jul 2005 19:46:22 -0300 (ADT) Received: from juju.arbash-meinel.com ([12.214.18.81]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20050714224623m920006dife>; Thu, 14 Jul 2005 22:46:23 +0000 Received: by juju.arbash-meinel.com (Postfix, from userid 505) id AD53D55FF0; Thu, 14 Jul 2005 17:46:22 -0500 (CDT) Received: from [192.168.1.102] (65-100-20-12.cdrr.qwest.net [65.100.20.12]) by juju.arbash-meinel.com (Postfix) with ESMTP id C534955FF0; Thu, 14 Jul 2005 17:46:16 -0500 (CDT) Message-ID: <42D6EB31.9040909@arbash-meinel.com> Date: Thu, 14 Jul 2005 17:46:09 -0500 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Harris Cc: pgsql-performance@postgresql.org Subject: Re: slow joining very large table to smaller ones References: <46AF8F35-B735-4DFA-BA0A-AC82B5DA3CCE@drivefaster.net> <42D687E5.7080202@arbash-meinel.com> In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig934AD7077F7DA9AB52E83521" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.027 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/189 X-Sequence-Number: 13430 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig934AD7077F7DA9AB52E83521 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Dan Harris wrote: > > On Jul 14, 2005, at 9:42 AM, John A Meinel wrote: ... Did you try doing this to see how good the planners selectivity estimates are? >> Well, postgres is estimating around 500 rows each, is that way off? Try >> just doing: >> EXPLAIN ANALYZE SELECT incidentid FROM k_b WHERE id = 107; >> EXPLAIN ANALYZE SELECT incidentid FROM k_r WHERE id = 94; These should be fast queries. John =:-> --------------enig934AD7077F7DA9AB52E83521 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC1usxJdeBCYSNAAMRAk5XAKCFggsfmcdSCEGUkeqRYx8M2+Q0mQCg2XEr dWjvGIfwMNGw4Szff32o9gM= =6zRN -----END PGP SIGNATURE----- --------------enig934AD7077F7DA9AB52E83521--