PostgreSQL Source Code
git master
|
Go to the source code of this file.
Typedefs | |
typedef void(* | process_file_callback_t) (const char *path, file_type_t type, size_t size, const char *link_target) |
Functions | |
void | fetchSourceFileList (void) |
char * | fetchFile (const char *filename, size_t *filesize) |
void | executeFileMap (void) |
void | libpqProcessFileList (void) |
char * | libpqGetFile (const char *filename, size_t *filesize) |
void | libpq_executeFileMap (filemap_t *map) |
void | libpqConnect (const char *connstr) |
XLogRecPtr | libpqGetCurrentXlogInsertLocation (void) |
void | copy_executeFileMap (filemap_t *map) |
void | traverse_datadir (const char *datadir, process_file_callback_t callback) |
typedef void(* process_file_callback_t) (const char *path, file_type_t type, size_t size, const char *link_target) |
void copy_executeFileMap | ( | filemap_t * | map | ) |
Definition at line 205 of file copy_fetch.c.
References file_entry_t::action, filemap_t::array, close_target_file(), create_target(), execute_pagemap(), FILE_ACTION_COPY, FILE_ACTION_COPY_TAIL, FILE_ACTION_CREATE, FILE_ACTION_NONE, FILE_ACTION_REMOVE, FILE_ACTION_TRUNCATE, i, filemap_t::narray, file_entry_t::newsize, file_entry_t::oldsize, file_entry_t::pagemap, file_entry_t::path, remove_target(), rewind_copy_file_range(), and truncate_target_file().
Referenced by executeFileMap().
void executeFileMap | ( | void | ) |
Definition at line 40 of file fetch.c.
References copy_executeFileMap(), datadir_source, filemap, and libpq_executeFileMap().
Referenced by main().
char* fetchFile | ( | const char * | filename, |
size_t * | filesize | ||
) |
Definition at line 54 of file fetch.c.
References datadir_source, libpqGetFile(), and slurpFile().
Referenced by getTimelineHistory(), and main().
void fetchSourceFileList | ( | void | ) |
Definition at line 28 of file fetch.c.
References datadir_source, libpqProcessFileList(), process_source_file(), and traverse_datadir().
Referenced by main().
void libpq_executeFileMap | ( | filemap_t * | map | ) |
Definition at line 436 of file libpq_fetch.c.
References file_entry_t::action, filemap_t::array, create_target(), execute_pagemap(), fetch_file_range(), FILE_ACTION_COPY, FILE_ACTION_COPY_TAIL, FILE_ACTION_CREATE, FILE_ACTION_NONE, FILE_ACTION_REMOVE, FILE_ACTION_TRUNCATE, i, filemap_t::narray, file_entry_t::newsize, file_entry_t::oldsize, open_target_file(), file_entry_t::pagemap, file_entry_t::path, pg_fatal, PGRES_COMMAND_OK, PGRES_COPY_IN, PQclear(), PQerrorMessage(), PQexec(), PQgetResult(), PQputCopyEnd(), PQresultErrorMessage(), PQresultStatus(), receiveFileChunks(), remove_target(), run_simple_command(), and truncate_target_file().
Referenced by executeFileMap().
void libpqConnect | ( | const char * | connstr | ) |
Definition at line 43 of file libpq_fetch.c.
References ALWAYS_SECURE_SEARCH_PATH_SQL, CONNECTION_BAD, pg_fatal, pg_free(), pg_log_info, PGRES_TUPLES_OK, PQclear(), PQconnectdb(), PQerrorMessage(), PQexec(), PQresultErrorMessage(), PQresultStatus(), PQstatus(), run_simple_command(), run_simple_query(), showprogress, and generate_unaccent_rules::str.
Referenced by main().
XLogRecPtr libpqGetCurrentXlogInsertLocation | ( | void | ) |
Definition at line 147 of file libpq_fetch.c.
References pg_fatal, pg_free(), run_simple_query(), and val.
Referenced by main().
char* libpqGetFile | ( | const char * | filename, |
size_t * | filesize | ||
) |
Definition at line 364 of file libpq_fetch.c.
References filename, pg_fatal, pg_log_debug, pg_malloc(), PGRES_TUPLES_OK, PQclear(), PQexecParams(), PQgetisnull(), PQgetlength(), PQgetvalue(), PQntuples(), PQresultErrorMessage(), and PQresultStatus().
Referenced by fetchFile().
void libpqProcessFileList | ( | void | ) |
Definition at line 170 of file libpq_fetch.c.
References FILE_TYPE_DIRECTORY, FILE_TYPE_REGULAR, FILE_TYPE_SYMLINK, i, pg_fatal, PGRES_TUPLES_OK, PQclear(), PQexec(), PQgetisnull(), PQgetvalue(), PQnfields(), PQntuples(), PQresultErrorMessage(), PQresultStatus(), process_source_file(), and generate_unaccent_rules::type.
Referenced by fetchSourceFileList().
void traverse_datadir | ( | const char * | datadir, |
process_file_callback_t | callback | ||
) |
Definition at line 33 of file copy_fetch.c.
References recurse_dir().
Referenced by fetchSourceFileList(), and main().