PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <fcntl.h>
#include <unistd.h>
#include "datapagemap.h"
#include "file_ops.h"
#include "filemap.h"
#include "pg_rewind.h"
#include "rewind_source.h"
Go to the source code of this file.
Data Structures | |
struct | local_source |
Functions | |
static void | local_traverse_files (rewind_source *source, process_file_callback_t callback) |
static char * | local_fetch_file (rewind_source *source, const char *path, size_t *filesize) |
static void | local_queue_fetch_file (rewind_source *source, const char *path, size_t len) |
static void | local_queue_fetch_range (rewind_source *source, const char *path, off_t off, size_t len) |
static void | local_finish_fetch (rewind_source *source) |
static void | local_destroy (rewind_source *source) |
rewind_source * | init_local_source (const char *datadir) |
rewind_source* init_local_source | ( | const char * | datadir | ) |
Definition at line 40 of file local_source.c.
References local_source::common, local_source::datadir, datadir, rewind_source::destroy, rewind_source::fetch_file, rewind_source::finish_fetch, rewind_source::get_current_wal_insert_lsn, local_destroy(), local_fetch_file(), local_finish_fetch(), local_queue_fetch_file(), local_queue_fetch_range(), local_traverse_files(), pg_malloc0(), rewind_source::queue_fetch_file, rewind_source::queue_fetch_range, and rewind_source::traverse_files.
Referenced by main().
|
static |
Definition at line 184 of file local_source.c.
References pfree(), and source.
Referenced by init_local_source().
|
static |
Definition at line 66 of file local_source.c.
References datadir, slurpFile(), and source.
Referenced by init_local_source().
|
static |
|
static |
Definition at line 77 of file local_source.c.
References buf, close, datadir, len, MAXPGPATH, open_target_file(), PG_BINARY, pg_fatal, read, snprintf, source, and write_target_range().
Referenced by init_local_source().
|
static |
Definition at line 128 of file local_source.c.
References buf, close, datadir, len, MAXPGPATH, open_target_file(), PG_BINARY, pg_fatal, read, snprintf, source, and write_target_range().
Referenced by init_local_source().
|
static |
Definition at line 60 of file local_source.c.
References callback(), datadir, source, and traverse_datadir().
Referenced by init_local_source().