PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "catalog/pg_tablespace_d.h"
#include "common/relpath.h"
#include "storage/procnumber.h"
Go to the source code of this file.
Functions | |
StaticAssertDecl (lengthof(forkNames)==(MAX_FORKNUM+1), "array length mismatch") | |
ForkNumber | forkname_to_number (const char *forkName) |
int | forkname_chars (const char *str, ForkNumber *fork) |
char * | GetDatabasePath (Oid dbOid, Oid spcOid) |
char * | GetRelationPath (Oid dbOid, Oid spcOid, RelFileNumber relNumber, int procNumber, ForkNumber forkNumber) |
Variables | |
const char *const | forkNames [] |
int forkname_chars | ( | const char * | str, |
ForkNumber * | fork | ||
) |
Definition at line 81 of file relpath.c.
References forkNames, InvalidForkNumber, len, MAX_FORKNUM, and str.
Referenced by looks_like_temp_rel_name(), and parse_filename_for_nontemp_relation().
ForkNumber forkname_to_number | ( | const char * | forkName | ) |
Definition at line 50 of file relpath.c.
References ereport, errcode(), errhint(), errmsg(), ERROR, forkNames, InvalidForkNumber, and MAX_FORKNUM.
Referenced by get_raw_page_fork(), get_raw_page_fork_1_9(), main(), pg_prewarm(), and pg_relation_size().
Definition at line 110 of file relpath.c.
References Assert, PG_TBLSPC_DIR, psprintf(), pstrdup(), and TABLESPACE_VERSION_DIRECTORY.
Referenced by check_db_file_conflict(), CreateDatabaseUsingFileCopy(), CreateDatabaseUsingWalLog(), createdb(), dbase_redo(), InitPostgres(), movedb(), movedb_failure_callback(), ProcessCommittedInvalidationMessages(), relmap_redo(), remove_dbtablespaces(), and TablespaceCreateDbspace().
char* GetRelationPath | ( | Oid | dbOid, |
Oid | spcOid, | ||
RelFileNumber | relNumber, | ||
int | procNumber, | ||
ForkNumber | forkNumber | ||
) |
Definition at line 142 of file relpath.c.
References Assert, forkNames, INVALID_PROC_NUMBER, MAIN_FORKNUM, PG_TBLSPC_DIR, psprintf(), and TABLESPACE_VERSION_DIRECTORY.
Referenced by GetIncrementalFilePath().
StaticAssertDecl | ( | lengthof(forkNames) | = =(MAX_FORKNUM+1) , |
"array length mismatch" | |||
) |
const char* const forkNames[] |
Definition at line 33 of file relpath.c.
Referenced by dump_one_relation(), forkname_chars(), forkname_to_number(), GetRelationPath(), XLogRecGetBlockRefInfo(), and XLogRecordSaveFPWs().