PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include "common.h"
#include "common/logging.h"
#include "fe_utils/cancel.h"
#include "fe_utils/option_utils.h"
#include "fe_utils/query_utils.h"
#include "fe_utils/simple_list.h"
Go to the source code of this file.
Functions | |
static void | cluster_one_database (const ConnParams *cparams, const char *table, const char *progname, bool verbose, bool echo) |
static void | cluster_all_databases (ConnParams *cparams, SimpleStringList *tables, const char *progname, bool verbose, bool echo, bool quiet) |
static void | help (const char *progname) |
int | main (int argc, char *argv[]) |
|
static |
Definition at line 227 of file clusterdb.c.
References _, cluster_one_database(), conn, connectMaintenanceDatabase(), dbname, executeQuery(), fflush(), SimpleStringList::head, i, SimpleStringListCell::next, _connParams::override_dbname, PQclear(), PQfinish(), PQgetvalue(), PQntuples(), printf, progname, generate_unaccent_rules::stdout, SimpleStringListCell::val, and verbose.
Referenced by main().
|
static |
Definition at line 189 of file clusterdb.c.
References appendPQExpBufferChar(), appendPQExpBufferStr(), appendQualifiedRelation(), conn, connectDatabase(), PQExpBufferData::data, executeMaintenanceCommand(), exit(), initPQExpBuffer(), pg_log_error, PQdb(), PQerrorMessage(), PQfinish(), progname, termPQExpBuffer(), and verbose.
Referenced by cluster_all_databases(), and main().
|
static |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 30 of file clusterdb.c.
References cluster_all_databases(), cluster_one_database(), dbname, _connParams::dbname, exit(), get_progname(), get_user_name_or_exit(), getopt_long(), handle_help_version_opts(), SimpleStringList::head, help(), SimpleStringListCell::next, no_argument, optarg, optind, _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, required_argument, set_pglocale_pgservice(), setup_cancel_handler(), simple_string_list_append(), TRI_DEFAULT, TRI_NO, TRI_YES, username, SimpleStringListCell::val, and verbose.