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 1iGGMg-0001KM-JB for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 05:42:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGGMf-0002k0-EO for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 05:42:53 +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 1iGGMd-0002jX-KQ for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 05:42:53 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGGMZ-0002gS-8Y for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 05:42:51 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E140F5A8; Fri, 4 Oct 2019 01:42:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 04 Oct 2019 01:42:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=umg0TngbBF4BDdGrFpdVgRV+puZ dOem3uzNo54u935c=; b=hMU+sRdseVpO/RE/m0S+QdOt0Arx1vX6YqjmQDt0MSM CSnffd3MMlaeiTgAnRUUsgPMSMuT1mTYJwlHbfveJIvMYo/t5t24KdAXCrcMRqZS O979AqH6ZxacDB7j+GHkPkvLsLmpczfiC7Xwl+JcTZGnFQdNgqILkyvKd+701AnF 7+ihmIVFy6KlFWxBq+HbHZGNPMoSML/NAImq0aWIDOPrNl/GasmcofEzt8epq/xd Xt+hjbqLn6fUVcUfaeQqyMBEUf/aAc00TdzE8bSvui2dkRwI1xNhry1z1jwHhxR8 mNh++adEAE/yxEblrJM3TFTUvzSZc00FW6H+nGSJe+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=umg0Tn gbBF4BDdGrFpdVgRV+puZdOem3uzNo54u935c=; b=Ym70NumD7aSoyEUkFp1q1o 89HgMG2XOYE6v0d/BopxmilKWomsWg9iwodIofJ0TVoJIoHEjPKuW5RxYkyzYWB1 RBGAtEPXQGD7DjYjXZ7UUzj5IXxckG8CQMt6T4SrB6v5djlWUIgaWJahYKQXSJhB EWkvzCAZcdvkHD6ZcTafICQmI3VS9fO4cELgVv8X0Xa9M4/Du2d9UO4TAPpqUhfh rrv3TY8Y0Fkue2Ki2oJ8AnXkO+gtEwKDlucADYFApIIbkkR5vNyp05kE67z4FE5l 6JsZBG4qAidY+BXxS2H2HJX7Cb1Rf3x1nfwe9hW7zTQsEIDNgoqu7mIyGwLR8Mpg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrhedtgdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgr rhgriigvlhdruggvqeenucfkphepieejrdduiedtrddvudekrddvfeejnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A6CBD6005E; Fri, 4 Oct 2019 01:42:43 -0400 (EDT) Date: Thu, 3 Oct 2019 22:42:41 -0700 From: Andres Freund To: Tom Lane Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16037: Assertion fails in varbit_out Message-ID: <20191004054241.x4cfcu4qnaucggf3@alap3.anarazel.de> References: <16037-1d1ebca564db54f4@postgresql.org> <17708.1570167288@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17708.1570167288@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-10-04 01:34:48 -0400, Tom Lane wrote: > PG Bug reporting form writes: > > The following query: > > SELECT CAST(B'111111111111100000000' AS BIT VARYING(20)) >>8; > > causes the FailedAssertion exception: > > D'oh ... bitshiftright() needs to do the zero-pad-fixup in both > code paths. Will fix it tomorrow. Does that suggest we shouldn't make the asserts active in the branches < 12? Greetings, Andres Freund