PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <ctype.h>
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/time.h>
#include "access/xlog_internal.h"
#include "common/logging.h"
#include "getopt_long.h"
Go to the source code of this file.
Functions | |
static void | Initialize (void) |
static void | TrimExtension (char *filename, char *extension) |
static void | CleanupPriorWALFiles (void) |
static void | SetWALFileNameForCleanup (void) |
static void | usage (void) |
int | main (int argc, char **argv) |
Variables | |
static const char * | progname |
static bool | dryrun = false |
static bool | cleanBackupHistory = false |
static char * | additional_ext = NULL |
static char * | archiveLocation |
static char * | restartWALFileName |
static char | exclusiveCleanupFileName [MAXFNAMELEN] |
|
static |
Definition at line 92 of file pg_archivecleanup.c.
References additional_ext, archiveLocation, cleanBackupHistory, closedir(), dirent::d_name, dryrun, exclusiveCleanupFileName, IsBackupHistoryFileName(), IsPartialXLogFileName(), IsXLogFileName(), MAXPGPATH, opendir(), pg_fatal, pg_log_debug, printf, readdir(), snprintf, strlcpy(), TrimExtension(), and walfile.
Referenced by main().
|
static |
Definition at line 58 of file pg_archivecleanup.c.
References archiveLocation, exit(), pg_log_error, S_ISDIR, stat::st_mode, and stat.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 287 of file pg_archivecleanup.c.
References additional_ext, archiveLocation, cleanBackupHistory, CleanupPriorWALFiles(), dryrun, exclusiveCleanupFileName, exit(), get_progname(), getopt_long(), Initialize(), no_argument, optarg, optind, pg_log_debug, pg_log_error, pg_log_error_hint, pg_logging_increase_verbosity(), pg_logging_init(), pg_strdup(), PG_TEXTDOMAIN, progname, required_argument, restartWALFileName, set_pglocale_pgservice(), SetWALFileNameForCleanup(), and usage().
|
static |
Definition at line 184 of file pg_archivecleanup.c.
References additional_ext, generate_unaccent_rules::args, exclusiveCleanupFileName, exit(), IsBackupHistoryFileName(), IsPartialXLogFileName(), IsXLogFileName(), pg_log_error, pg_log_error_hint, progname, restartWALFileName, TrimExtension(), and XLogFileNameById().
Referenced by main().
|
static |
Definition at line 76 of file pg_archivecleanup.c.
References filename.
Referenced by CleanupPriorWALFiles(), and SetWALFileNameForCleanup().
|
static |
|
static |
Definition at line 28 of file pg_archivecleanup.c.
Referenced by CleanupPriorWALFiles(), main(), and SetWALFileNameForCleanup().
|
static |
Definition at line 30 of file pg_archivecleanup.c.
Referenced by CleanupPriorWALFiles(), Initialize(), and main().
Definition at line 26 of file pg_archivecleanup.c.
Referenced by CleanupPriorWALFiles(), and main().
Definition at line 25 of file pg_archivecleanup.c.
Referenced by CleanupPriorWALFiles(), and main().
|
static |
Definition at line 33 of file pg_archivecleanup.c.
Referenced by CleanupPriorWALFiles(), main(), and SetWALFileNameForCleanup().
|
static |
Definition at line 22 of file pg_archivecleanup.c.
Referenced by main(), SetWALFileNameForCleanup(), and usage().
|
static |
Definition at line 31 of file pg_archivecleanup.c.
Referenced by main(), and SetWALFileNameForCleanup().