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 1gTsl9-00052C-Tg for pgsql-general@arkaria.postgresql.org; Mon, 03 Dec 2018 18:15:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gTsl8-0006T9-Jy for pgsql-general@arkaria.postgresql.org; Mon, 03 Dec 2018 18:15:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gTsl8-0006T2-Bz for pgsql-general@lists.postgresql.org; Mon, 03 Dec 2018 18:15:54 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gTsl5-00018y-AZ for pgsql-general@lists.postgresql.org; Mon, 03 Dec 2018 18:15:53 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5A2735F7A6; Mon, 3 Dec 2018 13:15:49 -0500 (EST) Date: Mon, 3 Dec 2018 13:15:49 -0500 From: Stephen Frost To: Andrew Gierth Cc: Kenneth Marshall , pgsql-general@lists.postgresql.org Subject: Re: Query never completes with an OR condition Message-ID: <20181203181549.GL3415@tamriel.snowman.net> References: <20181203162836.GC16983@aart.rice.edu> <87y39632td.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HFiloqgoA10Xgb7D" Content-Disposition: inline In-Reply-To: <87y39632td.fsf@news-spur.riddles.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --HFiloqgoA10Xgb7D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andrew Gierth (andrew@tao11.riddles.org.uk) wrote: > >>>>> "Kenneth" =3D=3D Kenneth Marshall writes: >=20 > Kenneth> The individual queries run as expected, but when the OR > Kenneth> condition is added, it never finishes. >=20 > http://blog.rhodiumtoad.org.uk/2017/01/22/performance-issues-with-ored-co= nditions/ There's been work to improve on this and which I know that I, at least, would love to see make it into PostgreSQL: https://commitfest.postgresql.org/19/1001/ Would be great if someone could look at that and try to help determine if it's possible to ensure that the results are entirely correct. Thanks! Stephen --HFiloqgoA10Xgb7D Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJcBXLUAAoJEO1sijiDR2RVR4sP/1fL7kbvjev2NXiWzLRhbjOS GHFwWpVeKwc9JQFwv8+FkVSiPOWpqK4QP4kHDLsbQJGI20vDWeBi8q48kePBoiHI 371Padu5NAZhFmFaLi8lreH0XQhO4ojJ6xkceHIDy8IRpRC7SgcFw69gEnkwk9Pa edv71G4ed7/CBJdpZ/3wYn+VZ+nzT9691Uup/erxYEa14Nx+iXVkQxktw4WvMUWU 0m612EbGTLp6Lh8NvkdnLTwcuaLp8QB6KwHJLHDXLEzt94omzlBPc3dG685MtsnY v0pCdHB8+YQbsqDSDTJUVdCMhgtRL3PeZQfQC3sZdvtxXfDnMWrEmxeTP/KZAx9Y 46k1EgSTBHfNThklJZDCi8y86wDV376PkN8nDieIwCkSA9T5/JmFNnAzww95ZGx2 HSNnLMq/ZKxzc5SIwb23Q+953sdb6J6cHHmSt20zLgusFdPDwJrwUEWgrRtSWjUU 23TaYA1lseWFALlc/7VLOARcVL69H9RNErKHYO+EQjKoxSYfSsYIGCIT+jpCEKuN qWZb/BVuPYVrDOB+rt9waQjvV5kffCnByhXIvDMI7Z6NSjkXQ4XdVEOP49eHBjau nkXcLnUmuNRBBaP7ib5t0/TBklQjnXKyxubg9kcazMBORjYbQQFbDdILH2Te8GYd 6l3rCnKrEDeAwDa5W8QY =O145 -----END PGP SIGNATURE----- --HFiloqgoA10Xgb7D--