PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/xact.h"
#include "backup/basebackup_sink.h"
#include "catalog/pg_authid.h"
#include "miscadmin.h"
#include "storage/fd.h"
#include "utils/acl.h"
#include "utils/wait_event.h"
Go to the source code of this file.
Data Structures | |
struct | bbsink_server |
Typedefs | |
typedef struct bbsink_server | bbsink_server |
Functions | |
static void | bbsink_server_begin_archive (bbsink *sink, const char *archive_name) |
static void | bbsink_server_archive_contents (bbsink *sink, size_t len) |
static void | bbsink_server_end_archive (bbsink *sink) |
static void | bbsink_server_begin_manifest (bbsink *sink) |
static void | bbsink_server_manifest_contents (bbsink *sink, size_t len) |
static void | bbsink_server_end_manifest (bbsink *sink) |
bbsink * | bbsink_server_new (bbsink *next, char *pathname) |
Variables | |
static const bbsink_ops | bbsink_server_ops |
typedef struct bbsink_server bbsink_server |
|
static |
Definition at line 160 of file basebackup_server.c.
References bbsink_server::base, bbsink::bbs_buffer, bbsink_forward_archive_contents(), ereport, errcode(), errcode_for_file_access(), errhint(), errmsg(), ERROR, bbsink_server::file, FilePathName(), bbsink_server::filepos, FileWrite(), and len.
|
static |
Definition at line 134 of file basebackup_server.c.
References Assert, bbsink_forward_begin_archive(), ereport, errcode_for_file_access(), errmsg(), ERROR, bbsink_server::file, filename, bbsink_server::filepos, bbsink_server::pathname, PathNameOpenFile(), pfree(), PG_BINARY, and psprintf().
|
static |
Definition at line 228 of file basebackup_server.c.
References Assert, bbsink_forward_begin_manifest(), ereport, errcode_for_file_access(), errmsg(), ERROR, bbsink_server::file, bbsink_server::pathname, PathNameOpenFile(), pfree(), PG_BINARY, and psprintf().
|
static |
Definition at line 194 of file basebackup_server.c.
References bbsink_forward_end_archive(), ereport, errcode_for_file_access(), errmsg(), ERROR, bbsink_server::file, FileClose(), FilePathName(), bbsink_server::filepos, and FileSync().
|
static |
Definition at line 287 of file basebackup_server.c.
References bbsink_forward_end_manifest(), durable_rename(), ERROR, bbsink_server::file, FileClose(), filename, bbsink_server::pathname, pfree(), and psprintf().
|
static |
Definition at line 253 of file basebackup_server.c.
References bbsink_server::base, bbsink::bbs_buffer, bbsink_forward_manifest_contents(), ereport, errcode(), errcode_for_file_access(), errhint(), errmsg(), ERROR, bbsink_server::file, FilePathName(), bbsink_server::filepos, FileWrite(), and len.
Definition at line 60 of file basebackup_server.c.
References bbsink_server::base, bbsink::bbs_next, bbsink::bbs_ops, bbsink_server_ops, CommitTransactionCommand(), ereport, errcode(), errcode_for_file_access(), errdetail(), errmsg(), ERROR, GetUserId(), has_privs_of_role(), is_absolute_path, MakePGDirectory(), next, palloc0(), bbsink_server::pathname, pg_check_dir(), and StartTransactionCommand().
Referenced by server_get_sink().
|
static |
Definition at line 44 of file basebackup_server.c.
Referenced by bbsink_server_new().