postgresql/src/include
Tom Lane fec443414b 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 Backpatch introduction of TupleDescAttr(tupdesc, i). 2017-08-22 07:47:52 -07:00
bootstrap Fix off-by-one loop count in MapArrayTypeName, and get rid of static array. 2014-12-16 15:35:43 -05:00
catalog Fix copy-pasto in comment. 2016-10-12 12:09:12 +03:00
commands Rework internals of changing a type's ownership 2015-12-21 19:49:15 -03:00
datatype Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
executor Fix latent crash in do_text_output_multiline(). 2016-05-23 14:16:41 -04:00
foreign Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
lib Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
libpq Give nicer error message when connecting to a v10 server requiring SCRAM. 2017-05-05 11:24:36 +03:00
mb Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
nodes Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:29 -04:00
optimizer Fix mishandling of equivalence-class tests in parameterized plans. 2016-04-29 20:19:38 -04:00
parser Rename parser token REF to REF_P to avoid a symbol conflict. 2022-10-16 15:27:04 -04:00
port Improve TranslateSocketError() to handle more Windows error codes. 2016-04-21 16:59:13 -04:00
portability Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
postmaster Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
regex Suppress compiler warnings about useless comparison of unsigned to zero. 2016-02-15 17:11:52 -05:00
replication Make SyncRepWakeQueue to a static function 2015-03-26 10:39:52 +09:00
rewrite Avoid getting more than AccessShareLock when deparsing a query. 2014-03-06 19:31:12 -05:00
snowball Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
storage Fix failure to mark init buffers as BM_PERMANENT. 2017-03-14 12:10:36 -04:00
tcop Remove dead code and fix comments in fast-path function handling. 2017-04-06 09:11:26 +03:00
tsearch Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:33 -05:00
utils Fix low-probability loss of NOTIFY messages due to XID wraparound. 2017-10-11 14:28:34 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Makefile Fix server header file installation with vpath builds 2011-11-10 20:52:54 +02:00
c.h Make [U]INT64CONST safe for use in #if conditions. 2017-09-01 15:14:18 -04:00
fmgr.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
funcapi.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
getaddrinfo.h Fix assorted issues in client host name lookup. 2014-04-02 17:11:31 -04:00
getopt_long.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
miscadmin.h Unify SIGHUP handling between normal and walsender backends. 2017-06-05 19:18:16 -07:00
pg_config.h.in Make [U]INT64CONST safe for use in #if conditions. 2017-09-01 15:14:18 -04:00
pg_config.h.win32 Stamp 9.2.24. 2017-11-06 17:17:39 -05:00
pg_config_manual.h Further reduce the number of semaphores used under --disable-spinlocks. 2016-04-18 13:33:07 -04:00
pg_trace.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
pgstat.h Don't reset changes_since_analyze after a selective-columns ANALYZE. 2016-06-06 17:44:18 -04:00
pgtar.h Adopt the GNU convention for handling tar-archive members exceeding 8GB. 2015-11-21 20:21:32 -05:00
pgtime.h Support timezone abbreviations that sometimes change. 2014-10-16 15:22:20 -04:00
port.h Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:17:42 -04:00
postgres.h Adjust DatumGetBool macro, this time for sure. 2016-04-28 11:51:22 -04:00
postgres_ext.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
postgres_fe.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
rusagestub.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
windowapi.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00