|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <limits.h>#include <stdlib.h>#include "catalog/pg_class_d.h"#include "common.h"#include "common/logging.h"#include "fe_utils/cancel.h"#include "fe_utils/option_utils.h"#include "fe_utils/parallel_slot.h"#include "fe_utils/query_utils.h"#include "fe_utils/simple_list.h"#include "fe_utils/string_utils.h"
Go to the source code of this file.
Typedefs | |
| typedef enum ReindexType | ReindexType |
Enumerations | |
| enum | ReindexType { REINDEX_DATABASE , REINDEX_INDEX , REINDEX_SCHEMA , REINDEX_SYSTEM , REINDEX_TABLE } |
| Enumerator | |
|---|---|
| REINDEX_DATABASE | |
| REINDEX_INDEX | |
| REINDEX_SCHEMA | |
| REINDEX_SYSTEM | |
| REINDEX_TABLE | |
Definition at line 27 of file reindexdb.c.
|
static |
Definition at line 499 of file reindexdb.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), appendQualifiedRelation(), Assert, comma, conn, fb(), fmtIdEnc(), name, PQclientEncoding(), REINDEX_DATABASE, REINDEX_INDEX, REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, tablespace, type, and verbose.
Referenced by reindex_one_database().
|
static |
Definition at line 744 of file reindexdb.c.
References appendPQExpBufferStr(), appendQualifiedRelation(), Assert, atooid, conn, executeQuery(), fb(), fmtQualifiedIdEnc(), i, initPQExpBuffer(), SimpleStringListCell::next, pg_malloc0(), PQclear, PQclientEncoding(), PQgetvalue, PQntuples, simple_oid_list_append(), simple_string_list_append(), simple_string_list_destroy(), termPQExpBuffer(), and SimpleStringListCell::val.
Referenced by reindex_one_database().
|
static |
Definition at line 629 of file reindexdb.c.
References appendPQExpBufferChar(), appendPQExpBufferStr(), appendStringLiteralConn(), Assert, conn, CppAsString2, executeQuery(), fb(), fmtQualifiedIdEnc(), i, initPQExpBuffer(), SimpleStringListCell::next, pg_malloc0(), PQclear, PQclientEncoding(), PQgetvalue, PQntuples, REINDEX_DATABASE, REINDEX_INDEX, REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, simple_string_list_append(), termPQExpBuffer(), type, and SimpleStringListCell::val.
Referenced by reindex_one_database().
Definition at line 895 of file reindexdb.c.
Definition at line 68 of file reindexdb.c.
References dbname, _connParams::dbname, fb(), get_progname(), get_user_name_or_exit(), getopt_long(), handle_help_version_opts(), SimpleStringList::head, help(), no_argument, optarg, optind, option_parse_int(), _connParams::override_dbname, pg_fatal, pg_log_error, pg_log_error_hint, pg_logging_init(), pg_strdup(), PG_TEXTDOMAIN, _connParams::pghost, _connParams::pgport, _connParams::pguser, port, progname, _connParams::prompt_password, reindex_all_databases(), REINDEX_DATABASE, REINDEX_INDEX, reindex_one_database(), REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, required_argument, set_pglocale_pgservice(), setup_cancel_handler(), simple_string_list_append(), tablespace, TRI_DEFAULT, TRI_NO, TRI_YES, username, and verbose.
|
static |
Definition at line 831 of file reindexdb.c.
References _, conn, connectMaintenanceDatabase(), dbname, executeQuery(), fb(), SimpleStringList::head, i, _connParams::override_dbname, PQclear, PQfinish(), PQgetvalue, PQntuples, printf, progname, REINDEX_DATABASE, REINDEX_INDEX, reindex_one_database(), REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, tablespace, and verbose.
Referenced by main().
|
static |
Definition at line 279 of file reindexdb.c.
References appendPQExpBufferChar(), Assert, CancelRequested, conn, connectDatabase(), fb(), gen_reindex_command(), get_parallel_tabidx_list(), get_parallel_tables_list(), initPQExpBuffer(), Min, SimpleStringListCell::next, ParallelSlotsAdoptConn(), ParallelSlotSetHandler(), ParallelSlotsGetIdle(), ParallelSlotsSetup(), ParallelSlotsTerminate(), ParallelSlotsWaitCompletion(), pfree(), pg_fatal, pg_free(), pg_malloc0(), PQdb(), PQfinish(), PQserverVersion(), progname, REINDEX_DATABASE, REINDEX_INDEX, REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, run_reindex_command(), simple_oid_list_destroy(), simple_string_list_append(), simple_string_list_destroy(), TableCommandResultHandler(), tablespace, termPQExpBuffer(), type, SimpleStringListCell::val, and verbose.
Referenced by main(), and reindex_all_databases().
|
static |
Definition at line 582 of file reindexdb.c.
References conn, PQExpBufferData::data, name, pg_log_error, PQdb(), PQerrorMessage(), PQsendQuery(), printf, REINDEX_DATABASE, REINDEX_INDEX, REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, and type.
Referenced by reindex_one_database().