postgres/src/backend/utils/adt
Tom Lane 2d00190495 Rationalize common/relpath.[hc].
Commit a730183926 created rather a mess by
putting dependencies on backend-only include files into include/common.
We really shouldn't do that.  To clean it up:

* Move TABLESPACE_VERSION_DIRECTORY back to its longtime home in
catalog/catalog.h.  We won't consider this symbol part of the FE/BE API.

* Push enum ForkNumber from relfilenode.h into relpath.h.  We'll consider
relpath.h as the source of truth for fork numbers, since relpath.c was
already partially serving that function, and anyway relfilenode.h was
kind of a random place for that enum.

* So, relfilenode.h now includes relpath.h rather than vice-versa.  This
direction of dependency is fine.  (That allows most, but not quite all,
of the existing explicit #includes of relpath.h to go away again.)

* Push forkname_to_number from catalog.c to relpath.c, just to centralize
fork number stuff a bit better.

* Push GetDatabasePath from catalog.c to relpath.c; it was rather odd
that the previous commit didn't keep this together with relpath().

* To avoid needing relfilenode.h in common/, redefine the underlying
function (now called GetRelationPath) as taking separate OID arguments,
and make the APIs using RelFileNode or RelFileNodeBackend into macro
wrappers.  (The macros have a potential multiple-eval risk, but none of
the existing call sites have an issue with that; one of them had such a
risk already anyway.)

* Fix failure to follow the directions when "init" fork type was added;
specifically, the errhint in forkname_to_number wasn't updated, and neither
was the SGML documentation for pg_relation_size().

* Fix tablespace-path-too-long check in CreateTableSpace() to account for
fork-name component of maximum-length pathnames.  This requires putting
FORKNAMECHARS into a header file, but it was rather useless (and
actually unreferenced) where it was.

The last couple of items are potentially back-patchable bug fixes,
if anyone is sufficiently excited about them; but personally I'm not.

Per a gripe from Christoph Berg about how include/common wasn't
self-contained.
2014-04-30 17:30:50 -04:00
..
acl.c Shore up ADMIN OPTION restrictions. 2014-02-17 09:33:31 -05:00
array_selfuncs.c Do ScalarArrayOp estimation correctly when array is a stable expression. 2014-02-21 17:10:46 -05:00
array_typanalyze.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
array_userfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
arrayfuncs.c arrays: tighten checks for multi-dimensional input 2014-02-01 10:49:17 -05:00
arrayutils.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ascii.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
bool.c Provide moving-aggregate support for boolean aggregates. 2014-04-13 00:01:46 -04:00
cash.c Add use of asprintf() 2013-10-13 00:09:18 -04:00
char.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
date.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
datetime.c Constructors for interval, timestamp, timestamptz 2014-03-04 15:09:43 -03:00
datum.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dbsize.c Rationalize common/relpath.[hc]. 2014-04-30 17:30:50 -04:00
domains.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
encode.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
enum.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
float.c Enable building with Visual Studion 2013. 2014-01-26 09:49:10 -05:00
format_type.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
formatting.c Fix to_timestamp/to_date's handling of consecutive spaces in format string. 2014-01-20 13:45:51 -05:00
genfile.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
geo_ops.c Allow single-point polygons to be converted to circles 2014-02-24 12:24:00 -05:00
geo_selfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
inet_cidr_ntop.c When reporting the server as not responding, if the hostname was 2010-11-24 17:04:19 -05:00
inet_net_pton.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
int.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
int8.c Provide moving-aggregate support for a bunch of numerical aggregates. 2014-04-12 20:33:09 -04:00
json.c Introduce jsonb, a structured format for storing json. 2014-03-23 16:40:19 -04:00
jsonb_gin.c De-anonymize the union in JsonbValue. 2014-04-02 14:30:08 -04:00
jsonb_op.c De-anonymize the union in JsonbValue. 2014-04-02 14:30:08 -04:00
jsonb_util.c De-anonymize the union in JsonbValue. 2014-04-02 14:30:08 -04:00
jsonb.c De-anonymize the union in JsonbValue. 2014-04-02 14:30:08 -04:00
jsonfuncs.c De-anonymize the union in JsonbValue. 2014-04-02 14:30:08 -04:00
like_match.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
like.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
lockfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
mac.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
Makefile Add an in-core GiST index opclass for inet/cidr types. 2014-04-08 15:46:43 -04:00
misc.c Rationalize common/relpath.[hc]. 2014-04-30 17:30:50 -04:00
nabstime.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
name.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
network_gist.c Add an in-core GiST index opclass for inet/cidr types. 2014-04-08 15:46:43 -04:00
network_selfuncs.c Add an in-core GiST index opclass for inet/cidr types. 2014-04-08 15:46:43 -04:00
network.c Add an in-core GiST index opclass for inet/cidr types. 2014-04-08 15:46:43 -04:00
numeric.c Provide moving-aggregate support for a bunch of numerical aggregates. 2014-04-12 20:33:09 -04:00
numutils.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
oid.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
oracle_compat.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
orderedsetaggs.c Another round of Coverity fixes 2014-03-03 03:18:51 -05:00
pg_locale.c C comments: remove odd blank lines after #ifdef WIN32 lines 2014-03-13 01:34:42 -04:00
pg_lsn.c Further code review for pg_lsn data type. 2014-02-19 10:06:59 -05:00
pg_lzcompress.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pgstatfuncs.c Fix bugs in manipulation of PgBackendStatus.st_clienthostname. 2014-04-01 21:30:34 -04:00
pseudotypes.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
quote.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
rangetypes_gist.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
rangetypes_selfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
rangetypes_spgist.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
rangetypes_typanalyze.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
rangetypes.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
regexp.c Allow regex operations to be terminated early by query cancel requests. 2014-03-01 15:20:56 -05:00
regproc.c Add to_regprocedure() and to_regoperator(). 2014-04-16 12:21:43 -04:00
ri_triggers.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
rowtypes.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ruleutils.c Check for interrupts and stack overflow during rule/view dumps. 2014-04-30 13:46:13 -04:00
selfuncs.c C comments: remove odd blank lines after #ifdef WIN32 lines 2014-03-13 01:34:42 -04:00
tid.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
timestamp.c Provide moving-aggregate support for a bunch of numerical aggregates. 2014-04-12 20:33:09 -04:00
trigfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsginidx.c Rename GinLogicValue to GinTernaryValue. 2014-03-31 10:26:38 +03:00
tsgistidx.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsquery_cleanup.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsquery_gist.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsquery_op.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsquery_rewrite.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsquery_util.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
tsquery.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
tsrank.c Fix ts_rank_cd() to ignore stripped lexemes 2014-03-24 14:37:16 -04:00
tsvector_op.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsvector_parser.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsvector.c Avoid memcpy() with same source and destination address. 2014-03-07 13:14:33 +02:00
txid.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
uuid.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
varbit.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
varchar.c docs: document behavior of CHAR() comparisons with chars < space 2014-02-24 12:09:23 -05:00
varlena.c Code review for commit d26888bc4d. 2014-04-03 16:57:45 -04:00
version.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
windowfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
xid.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
xml.c Prefer pg_any_to_server/pg_server_to_any over pg_do_encoding_conversion. 2014-02-23 16:59:05 -05:00