PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <fcntl.h>
#include <limits.h>
#include "common/blkreftable.h"
#include "common/int.h"
#include "common/logging.h"
#include "fe_utils/option_utils.h"
#include "getopt_long.h"
#include "lib/stringinfo.h"
Go to the source code of this file.
Data Structures | |
struct | ws_options |
struct | ws_file_info |
Typedefs | |
typedef struct ws_options | ws_options |
typedef struct ws_file_info | ws_file_info |
Functions | |
static void | dump_one_relation (ws_options *opt, RelFileLocator *rlocator, ForkNumber forknum, BlockNumber limit_block, BlockRefTableReader *reader) |
static void | help (const char *progname) |
static int | compare_block_numbers (const void *a, const void *b) |
static int | walsummary_read_callback (void *callback_arg, void *data, int length) |
static void | walsummary_error_callback (void *callback_arg, char *fmt,...) pg_attribute_printf(2 |
static void int | main (int argc, char *argv[]) |
Variables | |
static BlockNumber * | block_buffer = NULL |
static unsigned | block_buffer_size = 512 |
typedef struct ws_file_info ws_file_info |
typedef struct ws_options ws_options |
|
static |
Definition at line 219 of file pg_walsummary.c.
References a, b, and pg_cmp_u32().
Referenced by dump_one_relation().
|
static |
Definition at line 129 of file pg_walsummary.c.
References block_buffer, block_buffer_size, BlockRefTableReaderGetBlocks(), compare_block_numbers(), RelFileLocator::dbOid, forkNames, i, ws_options::individual, InvalidBlockNumber, palloc_array, PG_UINT32_MAX, printf, qsort, ws_options::quiet, RelFileLocator::relNumber, repalloc_array, and RelFileLocator::spcOid.
Referenced by main().
|
static |
static void int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 53 of file pg_walsummary.c.
References BlockRefTableReaderNextRelation(), close, CreateBlockRefTableReader(), DestroyBlockRefTableReader(), dump_one_relation(), exit(), ws_file_info::fd, ws_file_info::filename, get_progname(), getopt_long(), handle_help_version_opts(), help(), ws_options::individual, no_argument, optind, PG_BINARY, pg_fatal, pg_log_error, pg_log_error_hint, pg_logging_init(), PG_TEXTDOMAIN, progname, ws_options::quiet, set_pglocale_pgservice(), walsummary_error_callback(), and walsummary_read_callback().
|
static |
Definition at line 231 of file pg_walsummary.c.
References exit(), fmt, PG_LOG_ERROR, pg_log_generic_v(), PG_LOG_PRIMARY, va_end(), and va_start().
Referenced by main().
|
static |
Definition at line 246 of file pg_walsummary.c.
References data, ws_file_info::fd, ws_file_info::filename, pg_fatal, and read.
Referenced by main().
|
static |
Definition at line 37 of file pg_walsummary.c.
Referenced by dump_one_relation().
|
static |
Definition at line 38 of file pg_walsummary.c.
Referenced by dump_one_relation().