Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMbsT-0000f8-3m for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Dec 2016 14:40:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cMbsS-0000Zg-Jx for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Dec 2016 14:40:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cMbsR-0000XR-JC for pgsql-hackers@postgresql.org; Thu, 29 Dec 2016 14:40:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cMbsN-0005TA-Rh for pgsql-hackers@postgresql.org; Thu, 29 Dec 2016 14:40:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uBTEeERn018673; Thu, 29 Dec 2016 09:40:14 -0500 From: Tom Lane To: Alvaro Herrera cc: Pg Hackers Subject: Re: Indirect indexes In-reply-to: <20161229072807.b2p4ld55xmgwshhj@alvherre.pgsql> References: <20161229072807.b2p4ld55xmgwshhj@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 29 Dec 2016 04:28:07 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18671.1483022414.1@sss.pgh.pa.us> Date: Thu, 29 Dec 2016 09:40:14 -0500 Message-ID: <18672.1483022414@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > One exception: in htup_details.h I changed the definition of > HeapTupleHeaderIsHeapOnly() so that it returns a true boolean rather > than a random bit in a wider integer. Without this change, my compiler > complains when the result is passed as a bool argument into a function. That should probably get committed as a separate bug fix, and back-patched. Since HEAP_ONLY_TUPLE is 0x8000, the result of the existing macro would actually fail to fit into a bool variable, meaning we have a real coding hazard here. It would be nasty if code developed in HEAD failed when back-patched because of that. Andres ran around and fixed a bunch of these hazards before, but evidently missed this one. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers