Download pgsql/include/server/common/relpath.h from codekingpro/portable-devtools: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/common/relpath.h
- Command line
-
hf download hf://datasets/codekingpro/portable-devtools@df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/common/relpath.h
-
curl -L -o relpath.h https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/common/relpath.h
2.93 kB
| /*------------------------------------------------------------------------- | |
| * | |
| * relpath.h | |
| * Declarations for GetRelationPath() and friends | |
| * | |
| * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/common/relpath.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * 'pgrminclude ignore' needed here because CppAsString2() does not throw | |
| * an error if the symbol is not defined. | |
| */ | |
| /* | |
| * RelFileNumber data type identifies the specific relation file name. | |
| */ | |
| typedef Oid RelFileNumber; | |
| /* | |
| * Name of major-version-specific tablespace subdirectories | |
| */ | |
| /* Characters to allow for an OID in a relation path */ | |
| /* | |
| * Stuff for fork names. | |
| * | |
| * The physical storage of a relation consists of one or more forks. | |
| * The main fork is always created, but in addition to that there can be | |
| * additional forks for storing various metadata. ForkNumber is used when | |
| * we need to refer to a specific fork in a relation. | |
| */ | |
| typedef enum ForkNumber | |
| { | |
| InvalidForkNumber = -1, | |
| MAIN_FORKNUM = 0, | |
| FSM_FORKNUM, | |
| VISIBILITYMAP_FORKNUM, | |
| INIT_FORKNUM | |
| /* | |
| * NOTE: if you add a new fork, change MAX_FORKNUM and possibly | |
| * FORKNAMECHARS below, and update the forkNames array in | |
| * src/common/relpath.c | |
| */ | |
| } ForkNumber; | |
| extern PGDLLIMPORT const char *const forkNames[]; | |
| extern ForkNumber forkname_to_number(const char *forkName); | |
| extern int forkname_chars(const char *str, ForkNumber *fork); | |
| /* | |
| * Stuff for computing filesystem pathnames for relations. | |
| */ | |
| extern char *GetDatabasePath(Oid dbOid, Oid spcOid); | |
| extern char *GetRelationPath(Oid dbOid, Oid spcOid, RelFileNumber relNumber, | |
| int backendId, ForkNumber forkNumber); | |
| /* | |
| * Wrapper macros for GetRelationPath. Beware of multiple | |
| * evaluation of the RelFileLocator or RelFileLocatorBackend argument! | |
| */ | |
| /* First argument is a RelFileLocator */ | |
| /* First argument is a RelFileLocator */ | |
| /* First argument is a RelFileLocatorBackend */ | |