56 elog(
DEBUG1,
"resetting unlogged relations: cleanup %d init %d",
65 "ResetUnloggedRelations",
126 errmsg(
"could not open directory \"%s\": %m",
261 errmsg(
"could not remove file \"%s\": %m",
void begin_startup_progress_phase(void)
#define Assert(condition)
void copy_file(const char *fromfile, const char *tofile)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
HTAB * hash_create(const char *tabname, int64 nelem, const HASHCTL *info, int flags)
void hash_destroy(HTAB *hashp)
int64 hash_get_num_entries(HTAB *hashp)
int errcode_for_file_access(void)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void fsync_fname(const char *fname, bool isdir)
DIR * AllocateDir(const char *dirname)
struct dirent * ReadDir(DIR *dir, const char *dirname)
static char dstpath[MAXPGPATH]
MemoryContext CurrentMemoryContext
void MemoryContextDelete(MemoryContext context)
#define AllocSetContextCreate
#define ALLOCSET_DEFAULT_SIZES
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
static unsigned hash(unsigned *uv, int n)
static void ResetUnloggedRelationsInTablespaceDir(const char *tsdirname, int op)
void ResetUnloggedRelations(int op)
bool parse_filename_for_nontemp_relation(const char *name, RelFileNumber *relnumber, ForkNumber *fork, unsigned *segno)
static void ResetUnloggedRelationsInDbspaceDir(const char *dbspacedirname, int op)
#define UNLOGGED_RELATION_INIT
#define UNLOGGED_RELATION_CLEANUP
int forkname_chars(const char *str, ForkNumber *fork)
#define InvalidRelFileNumber
#define TABLESPACE_VERSION_DIRECTORY
#define ereport_startup_progress(msg,...)