|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <unistd.h>#include "common/file_perm.h"#include "common/logging.h"#include "fe_utils/astreamer.h"
Go to the source code of this file.
Data Structures | |
| struct | astreamer_plain_writer |
| struct | astreamer_extractor |
Typedefs | |
| typedef struct astreamer_plain_writer | astreamer_plain_writer |
| typedef struct astreamer_extractor | astreamer_extractor |
Variables | |
| static const astreamer_ops | astreamer_plain_writer_ops |
| static const astreamer_ops | astreamer_extractor_ops |
|
static |
Definition at line 206 of file astreamer_file.c.
References Assert, ASTREAMER_ARCHIVE_TRAILER, ASTREAMER_MEMBER_CONTENTS, ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, ASTREAMER_UNKNOWN, create_file_for_extract(), data, extract_directory(), extract_link(), fb(), astreamer_member::is_directory, astreamer_member::is_link, len, astreamer_member::linktarget, astreamer_member::mode, astreamer_member::pathname, pg_fatal, and snprintf.
Definition at line 381 of file astreamer_file.c.
References Assert, fb(), and PG_USED_FOR_ASSERTS_ONLY.
Definition at line 393 of file astreamer_file.c.
| astreamer * astreamer_extractor_new | ( | const char * | basepath, |
| const char *(*)(const char *) | link_map, | ||
| void(*)(const char *) | report_output_file | ||
| ) |
Definition at line 186 of file astreamer_file.c.
References astreamer_extractor_ops, astreamer_extractor::base, astreamer_extractor::basepath, astreamer::bbs_ops, astreamer_extractor::link_map, palloc0_object, pstrdup(), and astreamer_extractor::report_output_file.
Referenced by CreateBackupStreamer().
|
static |
Definition at line 107 of file astreamer_file.c.
Definition at line 134 of file astreamer_file.c.
Definition at line 152 of file astreamer_file.c.
Definition at line 81 of file astreamer_file.c.
References astreamer_plain_writer_ops, astreamer_plain_writer::base, astreamer::bbs_ops, fb(), astreamer_plain_writer::file, palloc0_object, astreamer_plain_writer::pathname, pg_fatal, pstrdup(), and astreamer_plain_writer::should_close_file.
Referenced by CreateBackupStreamer().
Definition at line 358 of file astreamer_file.c.
References fb(), filename, mode, and pg_fatal.
Referenced by astreamer_extractor_content().
Definition at line 320 of file astreamer_file.c.
References fb(), filename, mkdir, mode, pg_dir_create_mode, pg_fatal, and should_allow_existing_directory().
Referenced by astreamer_extractor_content().
Definition at line 345 of file astreamer_file.c.
References filename, pg_fatal, and symlink.
Referenced by astreamer_extractor_content().
Definition at line 295 of file astreamer_file.c.
References fb(), filename, and last_dir_separator().
Referenced by extract_directory().
|
static |
Definition at line 65 of file astreamer_file.c.
Referenced by astreamer_extractor_new().
|
static |
Definition at line 49 of file astreamer_file.c.
Referenced by astreamer_plain_writer_new().