Re: [COMMITTERS] pgsql: Remove endof macro - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: Remove endof macro
Date
Msg-id 69deffdb-980f-9a25-73f4-ab8b5f976cd5@2ndquadrant.com
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Remove endof macro  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Sync function prototype with its actual definition.
Next
From: Alvaro Herrera
Date:
Subject: [COMMITTERS] pgsql: Fix translatable string