Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8A17B6502A3 for ; Mon, 10 Nov 2008 09:06:56 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 69850-01 for ; Mon, 10 Nov 2008 09:06:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E5D7E64FD7D for ; Mon, 10 Nov 2008 09:06:55 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id mAAD6qnr003129; Mon, 10 Nov 2008 08:06:52 -0500 (EST) To: "Jim 'Decibel!' Nasby" cc: postgresql performance list Subject: Re: Oddity with view In-reply-to: <3CF0CFC1-FDBA-4A61-ACAA-6AF556C4C6F4@cashnetusa.com> References: <3CF0CFC1-FDBA-4A61-ACAA-6AF556C4C6F4@cashnetusa.com> Comments: In-reply-to "Jim 'Decibel!' Nasby" message dated "Mon, 10 Nov 2008 02:27:01 -0600" Date: Mon, 10 Nov 2008 08:06:52 -0500 Message-ID: <3128.1226322412@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200811/57 X-Sequence-Number: 31788 "Jim 'Decibel!' Nasby" writes: > loan_tasks effectively does SELECT * FROM loan_tasks_committed UNION > ALL SELECT * FROM loan_tasks_pending;. You seem to have neglected to mention a join or two. regards, tom lane