26 #define InvalidRelFileNumber ((RelFileNumber) InvalidOid)
27 #define RelFileNumberIsValid(relnumber) \
28 ((bool) ((relnumber) != InvalidRelFileNumber))
33 #define TABLESPACE_VERSION_DIRECTORY "PG_" PG_MAJORVERSION "_" \
34 CppAsString2(CATALOG_VERSION_NO)
41 #define PG_TBLSPC_DIR "pg_tblspc"
42 #define PG_TBLSPC_DIR_SLASH "pg_tblspc/"
71 #define MAX_FORKNUM INIT_FORKNUM
73 #define FORKNAMECHARS 4
94 #define relpathbackend(rlocator, backend, forknum) \
95 GetRelationPath((rlocator).dbOid, (rlocator).spcOid, (rlocator).relNumber, \
99 #define relpathperm(rlocator, forknum) \
100 relpathbackend(rlocator, INVALID_PROC_NUMBER, forknum)
103 #define relpath(rlocator, forknum) \
104 relpathbackend((rlocator).locator, (rlocator).backend, forknum)
char * GetRelationPath(Oid dbOid, Oid spcOid, RelFileNumber relNumber, int procNumber, ForkNumber forkNumber)
PGDLLIMPORT const char *const forkNames[]
char * GetDatabasePath(Oid dbOid, Oid spcOid)
int forkname_chars(const char *str, ForkNumber *fork)
ForkNumber forkname_to_number(const char *forkName)