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 EA9A73B6BA9 for ; Thu, 16 Dec 2004 17:02:27 +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 51762-05 for ; Thu, 16 Dec 2004 17:02:23 +0000 (GMT) Received: from relay.snowman.net (relay.snowman.net [66.92.160.56]) by svr1.postgresql.org (Postfix) with ESMTP id D8F463B6F4F for ; Thu, 16 Dec 2004 17:02:23 +0000 (GMT) Received: from ns.snowman.net (ns.snowman.net [10.10.0.2]) by relay.snowman.net (8.13.1/8.13.1/Debian-19) with ESMTP id iBGH2Afu027039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 16 Dec 2004 12:02:11 -0500 Received: from ns.snowman.net (localhost [127.0.0.1]) by ns.snowman.net (8.13.1/8.13.1/Debian-19) with ESMTP id iBGH2KcH010365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 16 Dec 2004 12:02:20 -0500 Received: (from sfrost@localhost) by ns.snowman.net (8.13.1/8.13.1/Submit) id iBGH2Klm010363; Thu, 16 Dec 2004 12:02:20 -0500 Date: Thu, 16 Dec 2004 12:02:20 -0500 From: Stephen Frost To: Richard Rowell Cc: pgsql-performance@postgresql.org Subject: Re: Improve performance of query Message-ID: <20041216170220.GK10437@ns.snowman.net> Mail-Followup-To: Richard Rowell , pgsql-performance@postgresql.org References: <1103213467.9908.65.camel@richard> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NVZ4M1l8awdqSrjc" Content-Disposition: inline In-Reply-To: <1103213467.9908.65.camel@richard> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.4.24ns.3.0 (i686) X-Uptime: 12:01:24 up 320 days, 11:58, 9 users, load average: 0.19, 0.23, 0.15 User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/203 X-Sequence-Number: 9578 --NVZ4M1l8awdqSrjc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Richard Rowell (richard@bowmansystems.com) wrote: > I have included an EXPLAIN ANALYZE, relevant table counts, and relevant > indexing information. If anyone has any suggestions on how to improve > performance.... TIA! Just a thought- do the UNION's actually have to be union's or would having them be 'UNION ALL's work? Stephen --NVZ4M1l8awdqSrjc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBwb+arzgMPqB3kigRAjmVAJ9HOb0yZZ8L8hmL4JVurBr7ZC4yQwCeL32M 9rb52sFyjs5Ij3+K9ILXBE8= =SNzJ -----END PGP SIGNATURE----- --NVZ4M1l8awdqSrjc--