Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwd0o-0005MY-S6 for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jun 2021 04:00:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwd0n-0004Iy-I2 for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jun 2021 04:00:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwd0n-0004Io-9i for pgsql-bugs@lists.postgresql.org; Fri, 25 Jun 2021 04:00:13 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lwd0h-0005Y4-5j for pgsql-bugs@lists.postgresql.org; Fri, 25 Jun 2021 04:00:12 +0000 Received: by mail-lf1-x12c.google.com with SMTP id t17so14120009lfq.0 for ; Thu, 24 Jun 2021 21:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=c6B7+p30goHtl52cmplbsEuDuGBSfXgNXG0iS8rxrEs=; b=PCpxGr+zKGBIVJ2kwPbkpoSCnnD/kd1YstcoQBCRphJNAzzGF+Wiy+0UqByW7zSpZM GOAk4GpnE5g2Dkq/cfkGrLrAcnLDk19fXpJVye6zLf7V4G8fL1G+PMBQbWuqshzUWGwq p9sMHYSp9t9VVy0vj/Uga97ENNlrKGf/o4R1WDoD0m2Nto4GbOQJq1LBwu3U93ekmJxO 1vnkgCa+gnuSr7q9RwPWcMmOfXFXoD6+vj9vcGjmqC5hRUBXRpSWibsXxZT/Hd7290rF tNG4yqdkJw/Pl5ONJU9SaNg7YVeF8swo2O9M9S8RmEgmhgSvAaXd6MsYbMXcCOnxr6BW A9VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=c6B7+p30goHtl52cmplbsEuDuGBSfXgNXG0iS8rxrEs=; b=MbzUDcnakxtx/8Trhyw2Cp9yEEptQMD6Ic0y7fb70XvlGi8JMSyg33UdafO4fQy3ff fnJ6gIndihveOZMw/oGxRGFxHquYHznTzA8ENeedsEd02NvjYBAyxHb939C5eC03u+R5 wkj68bJGkSGm2//ZlnDzkPqlkodyYCA2fPV0A2YtRpp8N3T2IIkd9vGprQEJZj1MXqNj 5VhD83lKeCehQuTxgp8HOKE2w6uMfrc1mpJcpknZIfIanfFCRqhIdHpjJJE1uFXxcPkT TgsR+wk5EBb3QAYgOogRd3bCWX0iwzgxfLmVTuR6BIGGKEITgLIQBpdFQdaSztQiEzmy 9Wzg== X-Gm-Message-State: AOAM530/VFfw8aDrsydBFsTu2A9/ObuSXRV/bsFaBo8H3vJjDewo2QDi znejQWjszD5ym0tX2pDE2j0= X-Google-Smtp-Source: ABdhPJyqjavBSLoZA+Q2wOfc2ucWe/AhRzSpaHPHiwc0snMHM0iazRWuaxo5k4msjyyHdUFmKum3fg== X-Received: by 2002:ac2:5ec3:: with SMTP id d3mr6643647lfq.440.1624593603289; Thu, 24 Jun 2021 21:00:03 -0700 (PDT) Received: from [1.0.0.7] ([178.155.6.177]) by smtp.gmail.com with ESMTPSA id t16sm459736lji.136.2021.06.24.21.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Jun 2021 21:00:01 -0700 (PDT) Subject: Re: BUG #17066: Cache lookup failed when null (unknown) is passed as anycompatiblemultirange To: Tom Lane , Alexander Korotkov Cc: Alvaro Herrera , Neil Chen , PostgreSQL mailing lists , Paul A Jungwirth References: <202106221342.lab2x5tvhcbs@alvherre.pgsql> <2549561.1624491310@sss.pgh.pa.us> From: Alexander Lakhin Message-ID: Date: Fri, 25 Jun 2021 07:00:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <2549561.1624491310@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, 24.06.2021 02:35, Tom Lane wrote: > Alexander Korotkov writes: >> I really appreciate a hint here. > I think I'm to blame for most of that code originally, so I'll take > a look soon. Been up to my neck in other stuff recently. I'm not sure whether it related to the initial issue, but there is another anomaly with the multirange types. (May be I should report it as a distinct bug?) The query: create table test_multirange(mr int4multirange); select count(*) from test_multirange where mr << int4range(100,100); produces: ERROR:  unexpected operator 4396 while select count(*) from test_multirange where mr << int4range(100,500); returns a result (as the multirangetypes test shows). Best regards, Alexander