PostgreSQL Source Code
git master
|
#include "lib/stringinfo.h"
Go to the source code of this file.
Data Structures | |
struct | FilterStateData |
Typedefs | |
typedef void(* | exit_function) (int status) |
Functions | |
const char * | filter_object_type_name (FilterObjectType fot) |
void | filter_init (FilterStateData *fstate, const char *filename, exit_function f_exit) |
void | filter_free (FilterStateData *fstate) |
void | pg_log_filter_error (FilterStateData *fstate, const char *fmt,...) pg_attribute_printf(2 |
void bool | filter_read_item (FilterStateData *fstate, char **objname, FilterCommandType *comtype, FilterObjectType *objtype) |
enum FilterCommandType |
enum FilterObjectType |
Definition at line 47 of file filter.h.
void filter_free | ( | FilterStateData * | fstate | ) |
Definition at line 60 of file filter.c.
References StringInfoData::data, FilterStateData::filename, FilterStateData::fp, free, FilterStateData::linebuff, and pg_log_error.
Referenced by read_dump_filters(), read_dumpall_filters(), and read_restore_filters().
void filter_init | ( | FilterStateData * | fstate, |
const char * | filename, | ||
exit_function | f_exit | ||
) |
Definition at line 36 of file filter.c.
References FilterStateData::exit_nicely, FilterStateData::filename, filename, FilterStateData::fp, initStringInfo(), FilterStateData::linebuff, FilterStateData::lineno, and pg_log_error.
Referenced by read_dump_filters(), read_dumpall_filters(), and read_restore_filters().
const char* filter_object_type_name | ( | FilterObjectType | fot | ) |
Definition at line 82 of file filter.c.
References FILTER_OBJECT_TYPE_DATABASE, FILTER_OBJECT_TYPE_EXTENSION, FILTER_OBJECT_TYPE_FOREIGN_DATA, FILTER_OBJECT_TYPE_FUNCTION, FILTER_OBJECT_TYPE_INDEX, FILTER_OBJECT_TYPE_NONE, FILTER_OBJECT_TYPE_SCHEMA, FILTER_OBJECT_TYPE_TABLE, FILTER_OBJECT_TYPE_TABLE_AND_CHILDREN, FILTER_OBJECT_TYPE_TABLE_DATA, FILTER_OBJECT_TYPE_TABLE_DATA_AND_CHILDREN, FILTER_OBJECT_TYPE_TRIGGER, and pg_unreachable.
Referenced by read_dump_filters(), read_dumpall_filters(), and read_restore_filters().
void bool filter_read_item | ( | FilterStateData * | fstate, |
char ** | objname, | ||
FilterCommandType * | comtype, | ||
FilterObjectType * | objtype | ||
) |
Definition at line 389 of file filter.c.
References _, StringInfoData::data, PQExpBufferData::data, FilterStateData::exit_nicely, FilterStateData::filename, FILTER_COMMAND_TYPE_EXCLUDE, FILTER_COMMAND_TYPE_INCLUDE, FILTER_COMMAND_TYPE_NONE, filter_get_keyword(), FILTER_OBJECT_TYPE_NONE, FilterStateData::fp, get_object_type(), initPQExpBuffer(), is_keyword_str, FilterStateData::linebuff, FilterStateData::lineno, pg_get_line_buf(), pg_log_error, pg_log_filter_error(), read_pattern(), size, and str.
Referenced by read_dump_filters(), read_dumpall_filters(), and read_restore_filters().
void pg_log_filter_error | ( | FilterStateData * | fstate, |
const char * | fmt, | ||
... | |||
) |