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 308E93A401A for ; Tue, 16 Nov 2004 21:11:37 +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 95704-06 for ; Tue, 16 Nov 2004 21:11:29 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by svr1.postgresql.org (Postfix) with ESMTP id 6F9F23A3FF8 for ; Tue, 16 Nov 2004 21:11:30 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 63so605860wri for ; Tue, 16 Nov 2004 13:11:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=m4wIfNeDL1MzR9ewOzxnwX3+N1uhZzZAgF3573PESskAnDjlPAruDcpRsoKyOiZgvkBY20cjqsHnhfhomjvyOCSs9DrQrFC3CpZIoQZ4bfie/KhPmBabTd8PmdWWmyOqL4AUSvhn0vyc5X+sObuxrcTnJMOgRVkjA8A/h4If8X0= Received: by 10.54.19.33 with SMTP id 33mr365873wrs; Tue, 16 Nov 2004 13:11:30 -0800 (PST) Received: by 10.54.20.23 with HTTP; Tue, 16 Nov 2004 13:11:30 -0800 (PST) Message-ID: <1dc7f0e304111613116532a64b@mail.gmail.com> Date: Tue, 16 Nov 2004 16:11:30 -0500 From: Alexandre Leclerc Reply-To: Alexandre Leclerc To: PERFORM Subject: nuderstanding 'explain analyse' Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/232 X-Sequence-Number: 9186 Hello, I build two SELECT queries, and in one I used COALESCE with a CASE, and in the second one I used only CASE statements. When analysing, I'm getting the exact same result, except the cost. (For now I have so few data that the results are too fragmented. If the plans for both queries are exactly the same, should I assume that the cost will also be the same? Thanks for any help. -- Alexandre Leclerc