|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | XLogDumpPrivate |
Typedefs | |
| typedef struct XLogDumpPrivate | XLogDumpPrivate |
Functions | |
| int | open_file_in_directory (const char *directory, const char *fname) |
| void | init_archive_reader (XLogDumpPrivate *privateInfo, pg_compress_algorithm compression) |
| void | free_archive_reader (XLogDumpPrivate *privateInfo) |
| int | read_archive_wal_page (XLogDumpPrivate *privateInfo, XLogRecPtr targetPagePtr, Size count, char *readBuff) |
| void | free_archive_wal_entry (const char *fname, XLogDumpPrivate *privateInfo) |
Variables | |
| char * | TmpWalSegDir |
|
extern |
Definition at line 234 of file archive_waldump.c.
References XLogDumpPrivate::archive_fd, XLogDumpPrivate::archive_name, XLogDumpPrivate::archive_read_buf, XLogDumpPrivate::archive_streamer, XLogDumpPrivate::archive_wal_htab, astreamer_free(), ArchivedWALFile::buf, close, destroyStringInfo(), fb(), pg_free(), and pg_log_error.
Referenced by main().
|
extern |
Definition at line 415 of file archive_waldump.c.
References XLogDumpPrivate::archive_wal_htab, ArchivedWALFile::buf, XLogDumpPrivate::cur_file, destroyStringInfo(), fb(), MAXPGPATH, pg_log_debug, snprintf, ArchivedWALFile::spilled, and TmpWalSegDir.
Referenced by init_archive_reader(), and TarWALDumpReadPage().
|
extern |
Definition at line 124 of file archive_waldump.c.
References XLogDumpPrivate::archive_dir, XLogDumpPrivate::archive_fd, XLogDumpPrivate::archive_name, XLogDumpPrivate::archive_read_buf, XLogDumpPrivate::archive_streamer, XLogDumpPrivate::archive_wal_htab, Assert, astreamer_gzip_decompressor_new(), astreamer_lz4_decompressor_new(), astreamer_tar_parser_new(), astreamer_waldump_new(), astreamer_zstd_decompressor_new(), ArchivedWALFile::buf, XLogDumpPrivate::cur_file, StringInfoData::data, XLogDumpPrivate::end_segno, XLogDumpPrivate::endptr, fb(), fd(), ArchivedWALFile::fname, free_archive_wal_entry(), IsValidWalSegSize, StringInfoData::len, ngettext, open_file_in_directory(), PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_ZSTD, pg_fatal, pg_log_error, pg_log_error_detail, pg_malloc(), read_archive_file(), READ_CHUNK_SIZE, XLogDumpPrivate::segsize, XLogDumpPrivate::start_segno, XLogDumpPrivate::startptr, XLogDumpPrivate::timeline, XLByteToSeg, XLogFromFileName(), and XLogRecPtrIsInvalid.
Referenced by main().
Definition at line 180 of file pg_waldump.c.
References Assert, directory, fb(), fd(), MAXPGPATH, PG_BINARY, pg_fatal, and snprintf.
Referenced by init_archive_reader(), main(), search_directory(), TarWALDumpReadPage(), and WALDumpOpenSegment().
|
extern |
Definition at line 281 of file archive_waldump.c.
References appendBinaryStringInfo(), XLogDumpPrivate::archive_name, Assert, buf, ArchivedWALFile::buf, XLogDumpPrivate::cur_file, StringInfoData::data, XLogDumpPrivate::decoding_started, fb(), get_archive_wal_entry(), StringInfoData::len, MAXFNAMELEN, Min, pg_fatal, read_archive_file(), READ_CHUNK_SIZE, ArchivedWALFile::read_len, resetStringInfo(), XLogDumpPrivate::segsize, XLogDumpPrivate::timeline, XLByteToSeg, XLogFileName(), and XLogSegNoOffsetToRecPtr.
Referenced by TarWALDumpReadPage().
|
extern |
Definition at line 32 of file archive_waldump.c.
Referenced by cleanup_tmpwal_dir_atexit(), free_archive_wal_entry(), perform_tmp_write(), prepare_tmp_write(), setup_tmpwal_dir(), and TarWALDumpReadPage().