Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpmgq-0002uU-NY for pgsql-committers@arkaria.postgresql.org; Thu, 07 Sep 2017 02:37:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpmgq-0002hX-5d for pgsql-committers@arkaria.postgresql.org; Thu, 07 Sep 2017 02:37:12 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpmgo-0002h4-7o for pgsql-committers@postgresql.org; Thu, 07 Sep 2017 02:37:10 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpmgk-0001JX-8r for pgsql-committers@postgresql.org; Thu, 07 Sep 2017 02:37:09 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E357B20E79; Wed, 6 Sep 2017 22:37:03 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 06 Sep 2017 22:37:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=QZt3ErrtV5zT9OG36/M+tIImMRgeippChunhiefRBWY=; b=H4wqoJZt IaKooYwSoJxqAPxAV0nmdiFKtUoIdWb9wIl2+ViIwdp18neFaf8/ph9HcYvJIV99 9vY3v0pe9bxSx3+IHggdZ4PdR4jMuQPWx9DHltUCZMhfs/TH3HWkGE0nyP4FFEWk i9phmSUzT1SR/py3w9qqy4BBjs4AlP9m/Fw98TFMF7c7jmXqNbVr7n3lhp/ByGvu 5R2NWgVwoNRhfbdeQa+O9xOUyWrOPWAuU/Zl0BZw51XUW4zmT8q7cTU9ucapVihU iH1qxM5JC6nkwV08/DB4G6Sani3ZkwbouIcNpDPwMUpCuNNYrymRkTM/7nCesZQR smnXfu3yY5D4cQ== X-ME-Sender: X-Sasl-enc: EtLotbZvyT4ddNpOXPE26puMGbSpzJVGyosMbHjy0maK 1504751823 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 936372494B; Wed, 6 Sep 2017 22:37:03 -0400 (EDT) Subject: Re: pgsql: Remove endof macro To: Andres Freund References: <20170905191013.klfktiol3wd3yrrj@alap3.anarazel.de> Cc: pgsql-committers@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <69deffdb-980f-9a25-73f4-ab8b5f976cd5@2ndquadrant.com> Date: Wed, 6 Sep 2017 22:37:02 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170905191013.klfktiol3wd3yrrj@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 9/5/17 15:10, Andres Freund wrote: > On 2017-09-05 19:08:06 +0000, Peter Eisentraut wrote: >> Remove endof macro >> >> It has not been used in a long time, and it doesn't seem safe anyway, so >> drop it. > > I've no problem removing this, but why isn't it safe? It's explicitly > allowed to compute (not dereference) the address of > end-of-array-plus-one. You are right. I misinterpreted some of the old commits. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers