|
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"
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 |
Definition at line 218 of file pg_walsummary.c.
References a, b, fb(), and pg_cmp_u32().
Referenced by dump_one_relation().
|
static |
Definition at line 128 of file pg_walsummary.c.
References block_buffer, block_buffer_size, BlockRefTableReaderGetBlocks(), compare_block_numbers(), RelFileLocator::dbOid, fb(), 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().
Definition at line 264 of file pg_walsummary.c.
Definition at line 52 of file pg_walsummary.c.
References BlockRefTableReaderNextRelation(), close, CreateBlockRefTableReader(), DestroyBlockRefTableReader(), dump_one_relation(), fb(), 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().
Definition at line 230 of file pg_walsummary.c.
References fb(), PG_LOG_ERROR, pg_log_generic_v(), and PG_LOG_PRIMARY.
Referenced by main().
|
static |
Definition at line 36 of file pg_walsummary.c.
Referenced by dump_one_relation().
|
static |
Definition at line 37 of file pg_walsummary.c.
Referenced by dump_one_relation().