X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 657B59FB2BF for ; Wed, 6 Sep 2006 09:50:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 32628-07 for ; Wed, 6 Sep 2006 12:50:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by postgresql.org (Postfix) with ESMTP id B738A9FB375 for ; Wed, 6 Sep 2006 09:45:20 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so206877nfc for ; Wed, 06 Sep 2006 05:45:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=evmFvjDAfKnwAYTjwzkqDMT5vexi9QjpNOGziQZdYL/bLf75yuKDQn/7blJUiDlLdmHmZZVQLztI+Mw6d4PlmWJkiDOlVVPfRbuIFjPP8aX40tBPQw+66aflEHMD/IgmrcaBCiTxYGmwaWePdt1dhbQ83Cn/ydpAWzIRXRd7Pvc= Received: by 10.49.26.18 with SMTP id d18mr828744nfj; Wed, 06 Sep 2006 05:45:17 -0700 (PDT) Received: by 10.49.87.3 with HTTP; Wed, 6 Sep 2006 05:45:16 -0700 (PDT) Message-ID: <9f394b1c0609060545v3962f369g22180ca5f4975092@mail.gmail.com> Date: Wed, 6 Sep 2006 09:45:16 -0300 From: "Marcus Vinicius" To: pgsql-performance@postgresql.org Subject: Lists (In) performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/31 X-Sequence-Number: 20717 Hi, Is the use of lists "Where field IN ('A',...'Z')" faster than using multiple conditions like "Where field = 'A' OR .... field = 'Z'" ? In every situation ? Depends on what ? Note: (I guess im mistaken, but i remeber seeing that at the pgsql manual somewhere) Thanks Marcus