Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 66F8F475C8C for ; Thu, 18 Jul 2002 13:30:24 -0400 (EDT) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 1582110; Thu, 18 Jul 2002 10:30:22 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Bruno Wolff III Subject: Re: Indexing UNIONs Date: Thu, 18 Jul 2002 10:30:22 -0700 X-Mailer: KMail [version 1.4] Cc: pgsql-sql@postgresql.org References: <20020716114553.GB29323@wolff.to> <200207171719.22224.josh@agliodbs.com> <20020718022901.GA11498@wolff.to> In-Reply-To: <20020718022901.GA11498@wolff.to> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207181030.22754.josh@agliodbs.com> X-Archive-Number: 200207/284 X-Sequence-Number: 8662 Bruno, > My suggestion: > SELECT t3.id, coalesce(t1.name, t2.name), t1.abbreviation, > coalesce(t1.juris_id, t2.juris_id) from > (t3 left join t1 using (id)) left join t2 using (id); Cool! I didn't think of that. I'll give it a try. -Josh