|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include "catalog/pg_attribute_d.h"#include "catalog/pg_class_d.h"#include "common/connect.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/string_utils.h"#include "vacuuming.h"
Go to the source code of this file.
Definition at line 1043 of file vacuuming.c.
References escape_single_quotes_ascii(), and pg_fatal.
|
static |
Definition at line 819 of file vacuuming.c.
References pg_free(), and simple_string_list_destroy().
Referenced by vacuum_all_databases(), vacuum_one_database(), and vacuuming_main().
|
static |
Definition at line 836 of file vacuuming.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), Assert, comma, conn, fb(), MODE_ANALYZE, MODE_ANALYZE_IN_STAGES, PQserverVersion(), resetPQExpBuffer(), and table.
Referenced by vacuum_one_database().
|
static |
Definition at line 530 of file vacuuming.c.
References ALWAYS_SECURE_SEARCH_PATH_SQL, appendPQExpBuffer(), appendPQExpBufferStr(), appendStringLiteralConn(), buf, conn, CppAsString2, executeCommand(), executeQuery(), fb(), fmtQualifiedIdEnc(), SimpleStringList::head, i, initPQExpBuffer(), MODE_ANALYZE, SimpleStringListCell::next, OBJFILTER_SCHEMA, OBJFILTER_SCHEMA_EXCLUDE, OBJFILTER_TABLE, palloc0_object, pg_free(), PQclear, PQclientEncoding(), PQgetisnull, PQgetvalue, PQntuples, resetPQExpBuffer(), simple_string_list_append(), splitTableColumnsSpec(), termPQExpBuffer(), and SimpleStringListCell::val.
Referenced by vacuum_one_database().
|
static |
Definition at line 1009 of file vacuuming.c.
References conn, fb(), ParallelSlotSetIdle(), pg_log_error, PQdb(), PQerrorMessage(), PQsendQuery(), printf, and table.
Referenced by vacuum_one_database().
|
static |
Definition at line 439 of file vacuuming.c.
References ANALYZE_NO_STAGE, ANALYZE_NUM_STAGES, conn, connectMaintenanceDatabase(), executeQuery(), EXIT_SUCCESS, fb(), free_retrieved_objects(), i, MODE_ANALYZE_IN_STAGES, _connParams::override_dbname, palloc0(), pg_free(), PQclear, PQfinish(), PQgetvalue, PQntuples, progname, and vacuum_one_database().
Referenced by vacuuming_main().
|
static |
Definition at line 164 of file vacuuming.c.
References _, ANALYZE_NO_STAGE, ANALYZE_NUM_STAGES, Assert, CancelRequested, conn, connectDatabase(), PQExpBufferData::data, executeCommand(), EXIT_FAILURE, EXIT_SUCCESS, fb(), free_retrieved_objects(), gettext_noop, initPQExpBuffer(), MODE_ANALYZE_IN_STAGES, MODE_VACUUM, SimpleStringListCell::next, ParallelSlotsAdoptConn(), ParallelSlotSetHandler(), ParallelSlotsGetIdle(), ParallelSlotsSetup(), ParallelSlotsTerminate(), ParallelSlotsWaitCompletion(), pg_fatal, pg_free(), PQdb(), PQfinish(), PQserverVersion(), prepare_vacuum_command(), printf, progname, retrieve_objects(), run_vacuum_command(), TableCommandResultHandler(), termPQExpBuffer(), and SimpleStringListCell::val.
Referenced by vacuum_all_databases(), and vacuuming_main().
| int vacuuming_main | ( | ConnParams * | cparams, |
| const char * | dbname, | ||
| const char * | maintenance_db, | ||
| vacuumingOptions * | vacopts, | ||
| SimpleStringList * | objects, | ||
| unsigned int | tbl_count, | ||
| int | concurrentCons, | ||
| const char * | progname | ||
| ) |
Definition at line 55 of file vacuuming.c.
References ANALYZE_NO_STAGE, ANALYZE_NUM_STAGES, dbname, _connParams::dbname, EXIT_SUCCESS, fb(), free_retrieved_objects(), get_user_name_or_exit(), MODE_ANALYZE_IN_STAGES, OBJFILTER_ALL_DBS, progname, setup_cancel_handler(), vacuum_all_databases(), and vacuum_one_database().
Referenced by main().