#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.
Enumerator | |
---|---|
REINDEX_DATABASE | |
REINDEX_INDEX | |
REINDEX_SCHEMA | |
REINDEX_SYSTEM | |
REINDEX_TABLE |
Definition at line 27 of file reindexdb.c.
Definition at line 499 of file reindexdb.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), appendQualifiedRelation(), Assert(), comma, conn, fmtIdEnc(), name, PQclientEncoding(), REINDEX_DATABASE, REINDEX_INDEX, REINDEX_SCHEMA, REINDEX_SYSTEM, REINDEX_TABLE, tablespace, type, and verbose.
Referenced by reindex_one_database().
Definition at line 744 of file reindexdb.c.
References appendPQExpBufferStr(), appendQualifiedRelation(), Assert(), atooid, conn, PQExpBufferData::data, executeQuery(), fmtQualifiedIdEnc(), SimpleStringList::head, i, initPQExpBuffer(), SimpleStringListCell::next, pg_malloc0(), PQclear, PQclientEncoding(), PQgetvalue, PQntuples, simple_oid_list_append(), simple_string_list_append(), simple_string_list_destroy(), SimpleStringList::tail, termPQExpBuffer(), and SimpleStringListCell::val.
Referenced by reindex_one_database().
Definition at line 629 of file reindexdb.c.
References appendPQExpBufferChar(), appendPQExpBufferStr(), appendStringLiteralConn(), Assert(), conn, CppAsString2, PQExpBufferData::data, executeQuery(), fmtQualifiedIdEnc(), SimpleStringList::head, 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 68 of file reindexdb.c.
References dbname, _connParams::dbname, 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.
Definition at line 831 of file reindexdb.c.
References _, conn, connectMaintenanceDatabase(), dbname, executeQuery(), 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, generate_unaccent_rules::stdout, tablespace, and verbose.
Referenced by main().
Definition at line 279 of file reindexdb.c.
References appendPQExpBufferChar(), Assert(), CancelRequested, conn, connectDatabase(), ParallelSlot::connection, gen_reindex_command(), get_parallel_tabidx_list(), get_parallel_tables_list(), SimpleOidList::head, SimpleStringList::head, initPQExpBuffer(), Min, SimpleOidListCell::next, 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, SimpleOidListCell::val, SimpleStringListCell::val, and verbose.
Referenced by main(), and reindex_all_databases().
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().