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 1iJJRX-0006BT-CC for pgsql-performance@arkaria.postgresql.org; Sat, 12 Oct 2019 15:36:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJJQY-0002mK-30 for pgsql-performance@arkaria.postgresql.org; Sat, 12 Oct 2019 15:35:30 +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 1iJJQX-0002lj-Ld for pgsql-performance@lists.postgresql.org; Sat, 12 Oct 2019 15:35:29 +0000 Received: from mout.perfora.net ([74.208.4.197]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iJJQV-0000ke-GD for pgsql-performance@postgresql.org; Sat, 12 Oct 2019 15:35:28 +0000 Received: from [192.168.1.101] ([98.169.208.73]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lbs0o-1hcFMk4AuC-00jG4p; Sat, 12 Oct 2019 17:35:23 +0200 Subject: Re: Optimising a two column OR check To: Andrew Gierth Cc: Jeff Janes , Justin Pryzby , Ivan Voras , postgres performance list References: <20191012144336.GA4475@telsasoft.com> <87y2xqvv1x.fsf@news-spur.riddles.org.uk> From: MichaelDBA Message-ID: <25d9306a-d0e9-ed82-3128-bff469f09aed@sqlexec.com> Date: Sat, 12 Oct 2019 11:35:22 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.5.2 MIME-Version: 1.0 In-Reply-To: <87y2xqvv1x.fsf@news-spur.riddles.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:EhZ8tMhg7s+sfDd7vwvvYnxCBca1JlXgUoxcKxUbz7vbNMY3tnr vHsfqBbUpa8bmkOxbt9DEv/lj895VF26BczeL7fVdQ3dGnvk0kDXW+QL/b/0vZuyj30njEu kjGdaV//E883sHCpAUAgOXhEOlEBa8qppRuQLRMVszvJEaF99SyKa7THVaSTW5WzFXOr88q WUi+CWRsosgtKDSknWTcA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Lhkf6nY+H3U=:vLJkSQ+slvlVUOMsbo5pn7 y5SsgtJ6Ka7kDnRpuJVXN2QVs1aurIsYIXwSe7Ax2KM+p7H8Yg/dZI01B+mq7BkbxYtBL/jyQ SXVxUWfpOUi6NGaQKpXzQ8LBTWkGUv5GtGRwg/jqZmyBn/y+bl9zcMqs96N/mFAROC8HnkUhK 9halU1GwPTG6mJIeBqVyRBfpuBRc9MCMvEmylcSWzYKpnqLk9KIEYOxZdGSyVw5rHE4ArLCVL QJGg5aeqCNz+sbUEkNzln6+EisH+4PbavoIuT+YQggv3fhrEHxClB7ydLvGcjSWjXgJpHLqzW i1LTobcXRtDKIxzEomQj8R4oPP1QKi+MzkWrBO/OinM0om5f1J0jzZ/RYrylrtSEElB/1Cd4X 5G7wTWeNyue+Mpz8FD8vxKA80rtTFSxXs6FSOa9MN3Y3laQGLzGkD0BKybT8J7ZR6MfB4G0H7 FrtXYhlWVslc4Au/3vO4IhRCyRfqgOLZimcCq9P3ZbzPKe4doL4NJYLIUpejuwP74A36wUXq7 servrtWhT3CwybAfRDQPrAkF1EB//unbm0haKlClJAx1g5LvGuJp76IHoDX4NJR3fF5APTXnE JpOl5iMoNSIEjLZObxyWffdjnx5fW46KglSPExPzW4hD5iGT8Vc4ax8t8v0Xr80sMpX+CckOK hVkU6pkvWJTUQGsSgbJaV2nfocVuGt5W9uA+v+mRYm0QyAPvybY5EqSNd7R6990UeccfBUAlK zIB8JmrGyyYJ+cOurFUCYZlkhW2MIHSRVOx9/P4zrezLS7PaQOO38DCWHtChFemp+L53noSLk BAOfNKNf/4l4ATEThMQ/3nRYNz1PiL9da6q/HpiZLiJjZJN2lTG4LZ/RdOoFkRZ9kh6DDSFxS f+YjjvWZ6MEjHB2H9VIjOsdnK+Q2bDd5Yffbl/Iek= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Nope, vacuumed it and still got the bitmap index scans. Andrew Gierth wrote on 10/12/2019 11:33 AM: >>>>>> "MichaelDBA" == MichaelDBA writes: > MichaelDBA> BTW, to Andrew, the UNION ALL alternative still results in > MichaelDBA> bitmap index scans from my testing. > > You probably forgot to vacuum the table. >