Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iG8ce-0002gF-3h for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2019 21:26:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iG8cb-0008Bn-OF for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2019 21:26:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iG8cb-0008BX-BJ for pgsql-general@lists.postgresql.org; Thu, 03 Oct 2019 21:26:49 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iG8cY-0002Nt-SG for pgsql-general@lists.postgresql.org; Thu, 03 Oct 2019 21:26:48 +0000 Received: by mail-pg1-x544.google.com with SMTP id q1so2527885pgb.0 for ; Thu, 03 Oct 2019 14:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=M2ZsdhHK1UnKiyFFo0m1TAwDKBVCiJJ5pkspBYruHaQ=; b=CHm3ObjqyOHMZC9PySpnq9X86O/WxVh0/LHqUGKIdAlgiBYlnp0R+bTEHlgHkAx6dZ 6RltmmXkRjPjEF1gUgrRwWKSstT9F5cVHl37SiXY7kpGcPzb5nScOTVjZhQAYuR7dfki lWslKbEXjeChyIB0HytJ3z+AvGE8y9L59gbGQK+f6Riot39Ttd3FhPZb6O+bhhv6KP0b Egs9enYD6YPfQxdox2IrLo71UIFnQEyJSpex2v0DXfp703m0UdRhjqz9fIm9qBwWLa4d TQgOs1rs1igBEHc1wqh1oywnRiAkQJKvl2SVw3mQTlEQ48s9SrgAhPLUmSih+4/eHdak PPBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=M2ZsdhHK1UnKiyFFo0m1TAwDKBVCiJJ5pkspBYruHaQ=; b=FqM2LkmTDZ+2fKnavpgmJ4DxJ72PfzKVQHdrJdmvGdvoYAdaUt2DH7z+ZGFmI7Y14l IbhfA/FUMIQBVB9J0UmF/0eOHy1Zb3hw0FRNf3GGmcG2miTtuxdkPt7nTeQFx3UaKg4R 48eN7vOe4Zu+hWikPA177N9sJUMWaN0oZGNyBB0zvIM+FjeICtXN5YLIwaKTxwf8VZeI JTMfGlaD1zLPLNqGO0VBQboWhLW7tW76bE5FeuoivDrUQPKWmU95ge4IjIE5BZ0u2VE6 LCv91e4fSZVMpXu+z52TP4LVEethh4ruEZ9PoEg5+4HruzLn6dy1E3gPPI321NGIfoaA UXBg== X-Gm-Message-State: APjAAAXddMvQ+0x1PgYLVF/ITslysv38Q6+As+Y4WNs7Fzg9xbu1K5NK cTcQiemoi7GqmBxVy8YFojyEk5AS X-Google-Smtp-Source: APXvYqyWBq1cZ4KRLYiaHwjG7ym7txT4fu0Ju7eKdhKsZBnq1yw9DT5IsfOSU/JVRYiJ1KhlDolQ6g== X-Received: by 2002:a63:225f:: with SMTP id t31mr11678304pgm.50.1570138005173; Thu, 03 Oct 2019 14:26:45 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id z29sm3416647pff.23.2019.10.03.14.26.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 14:26:44 -0700 (PDT) Subject: Re: BitmapAnd on correlated column? To: pgsql-general@lists.postgresql.org References: <1570137723639-0.post@n3.nabble.com> From: Rob Sargent Message-ID: Date: Thu, 3 Oct 2019 15:26:43 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1570137723639-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/3/19 3:22 PM, greigwise wrote: > I'm running the following query on Postgres version 10.8: > > SELECT count(*) FROM test_table WHERE and id_column_1 IN (9954, 9690, 9689, > 9688) AND > id_column_2 IN (75328, 51448, 48060, 48065, 51803, 51449, 51802, 48064, > > - > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > Is "where and" just a typo?