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

From Andres Freund
Subject Re: [COMMITTERS] pgsql: Remove endof macro
Date
Msg-id 20170905191013.klfktiol3wd3yrrj@alap3.anarazel.de
Whole thread Raw
In response to [COMMITTERS] pgsql: Remove endof macro  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [COMMITTERS] pgsql: Remove endof macro  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-committers
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


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: [COMMITTERS] pgsql: Remove endof macro
Next
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Use lfirst_node() and linitial_node() where appropriate inplann