postgresql/src/backend
Tom Lane 57dfb6ce61 Rename parser token REF to REF_P to avoid a symbol conflict.
In the latest version of Apple's macOS SDK, <sys/socket.h>
fails to compile if "REF" is #define'd as something.
Apple may or may not agree that this is a bug, and even if
they do accept the bug report I filed, they probably won't
fix it very quickly.  In the meantime, our back branches will all
fail to compile gram.y.  v15 and HEAD currently escape the problem
thanks to the refactoring done in 98e93a1fc, but that's purely
accidental.  Moreover, since that patch removed a widely-visible
inclusion of <netdb.h>, back-patching it seems too likely to break
third-party code.

Instead, change the token's code name to REF_P, following our usual
convention for naming parser tokens that are likely to have symbol
conflicts.  The effects of that should be localized to the grammar
and immediately surrounding files, so it seems like a safer answer.

Per project policy that we want to keep recently-out-of-support
branches buildable on modern systems, back-patch all the way to 9.2.

Discussion: https://postgr.es/m/1803927.1665938411@sss.pgh.pa.us
2022-10-16 15:27:04 -04:00
..
access Suppress more variable-set-but-not-used warnings from clang 15. 2022-09-21 13:52:38 -04:00
bootstrap Initialize random() in bootstrap/stand-alone postgres and in initdb. 2018-09-23 22:56:57 -07:00
catalog Fix CheckAttributeType's handling of collations for ranges. 2020-01-31 17:03:55 -05:00
commands Revert commit 56bc82a511. 2020-02-03 12:45:01 +09:00
executor Fix edge case leading to agg transitions skipping ExecAggTransReparent() calls. 2020-01-20 23:32:21 -08:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Misc comment typo fixes. 2014-12-16 16:38:20 +02:00
libpq Avoid logging complaints about abandoned connections when using PAM. 2019-11-05 14:27:38 -05:00
main Install Windows crash dump handler before all else. 2017-11-12 14:31:04 -08:00
nodes Selectively include window frames in expression walks/mutates. 2019-10-03 11:18:20 +01:00
optimizer Suppress more variable-set-but-not-used warnings from clang 15. 2022-09-21 13:52:38 -04:00
parser Rename parser token REF to REF_P to avoid a symbol conflict. 2022-10-16 15:27:04 -04:00
po Translation updates 2020-02-10 12:52:24 +01:00
port Fix race condition in our Windows signal emulation. 2019-12-09 15:03:52 -05:00
postmaster Clean up properly error_context_stack in autovacuum worker on exception 2019-10-23 10:26:28 +09:00
regex Fix misoptimization of "{1,1}" quantifiers in regular expressions. 2019-05-12 18:53:45 -04:00
replication Set ReorderBufferTXN->final_lsn more eagerly 2020-01-17 18:00:39 -03:00
rewrite Make rewriter prevent auto-updates on views with conditional INSTEAD rules. 2020-01-14 09:47:44 +00:00
snowball Fix ancient encoding error in hungarian.stop. 2014-06-10 22:48:31 -04:00
storage Fix memory leak on DSM slot exhaustion. 2020-02-01 15:10:20 +13:00
tcop Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds. 2019-04-09 08:25:43 -07:00
tsearch Make ts_locale.c's character-type functions cope with UTF-16. 2018-11-03 13:56:10 -04:00
utils Suppress more variable-set-but-not-used warnings from clang 15. 2022-09-21 13:52:38 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Fix make rules that generate multiple output files. 2018-03-23 13:45:38 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Translation updates 2015-02-01 23:18:42 -05:00