Обсуждение: [COMMITTERS] pgsql: Remove endof macro

Поиск
Список
Период
Сортировка

[COMMITTERS] pgsql: Remove endof macro

От
Peter Eisentraut
Дата:
Remove endof macro

It has not been used in a long time, and it doesn't seem safe anyway, so
drop it.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/153a49bb331005bf70b1e76e69fe28f1c417cc91

Modified Files
--------------
src/include/c.h | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)


Re: [COMMITTERS] pgsql: Remove endof macro

От
Andres Freund
Дата:
Hi,

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.

Andres


Re: [COMMITTERS] pgsql: Remove endof macro

От
Peter Eisentraut
Дата:
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