Re: remove pg_restrict workaround

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-01-14T14:36:09Z
Lists: pgsql-hackers
On 03.01.26 23:57, Jelte Fennema-Nio wrote:
> I don't see any way out except a revert. To be clear, that would solve
> it because we can totally do the following on MSVC C++:
> #define pg_restrict __restrict

Yes, it looks like there is no way past that.  I have reverted the patch 
and updated the code comments to clarify that the reason for this is now 
C++ only.




Commits

  1. Revert "Replace pg_restrict by standard restrict"

  2. Replace pg_restrict by standard restrict

  3. Remove meaninglist restrict qualifiers