postgresql/src/include/common
Tom Lane af1a949109 Further cleanup of client dependencies on src/include/catalog headers.
In commit 9c0a0de4c, I'd failed to notice that catalog/catalog.h
should also be considered a frontend-unsafe header, because it includes
(and needs) the full form of pg_class.h, not to mention relcache.h.
However, various frontend code was depending on it to get
TABLESPACE_VERSION_DIRECTORY, so refactoring of some sort is called for.

The cleanest answer seems to be to move TABLESPACE_VERSION_DIRECTORY,
as well as the OIDCHARS symbol, to common/relpath.h.  Do that, and mop up
inclusions as necessary.  (I found that quite a few current users of
catalog/catalog.h don't seem to need it at all anymore, apparently as a
result of the refactorings that created common/relpath.[hc].  And
initdb.c needed it only as a route to pg_class_d.h.)

Discussion: https://postgr.es/m/6629.1523294509@sss.pgh.pa.us
2018-04-09 14:39:58 -04:00
..
base64.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
config_info.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
controldata_utils.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
fe_memutils.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
file_perm.h Allow group access on PGDATA 2018-04-07 17:45:39 -04:00
file_utils.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
int.h Return implementation defined value if pg_$op_s$bit_overflow overflows. 2018-02-14 14:23:57 -08:00
int128.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
ip.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
keywords.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
md5.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_lzcompress.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
relpath.h Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
restricted_token.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
saslprep.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
scram-common.h Fix up references to scram-sha-256 2018-01-30 16:50:30 -05:00
sha2.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
string.h restrict -> pg_restrict 2018-03-15 10:02:59 -03:00
unicode_norm.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
unicode_norm_table.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
username.h Update copyright for 2018 2018-01-02 23:30:12 -05:00