PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <unistd.h>
#include <sys/stat.h>
#include "common/file_utils.h"
#include "storage/fd.h"
Go to the source code of this file.
Macros | |
#define | pg_log_warning(...) elog(WARNING, __VA_ARGS__) |
#define | LOG_LEVEL WARNING |
#define | OPENDIR(x) AllocateDir(x) |
#define | CLOSEDIR(x) FreeDir(x) |
Functions | |
bool | rmtree (const char *path, bool rmtopdir) |
#define OPENDIR | ( | x | ) | AllocateDir(x) |
Definition at line 50 of file rmtree.c.
References CLOSEDIR, dirent::d_name, get_dirent_type(), i, LOG_LEVEL, MAXPGPATH, OPENDIR, palloc(), pfree(), pg_log_warning, PGFILETYPE_DIR, PGFILETYPE_ERROR, pstrdup(), readdir(), repalloc(), and snprintf.
Referenced by cleanup_directories_atexit(), cleanup_output_dirs(), CreateSlotOnDisk(), dbase_redo(), movedb(), movedb_failure_callback(), regression_main(), remove_dbtablespaces(), remove_new_subdir(), ReplicationSlotDropPtr(), RestoreSlotFromDisk(), and StartupReplicationSlots().