PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "catalog/pg_class_d.h"
#include "common/connect.h"
#include "common/logging.h"
#include "common/string.h"
#include "getopt_long.h"
#include "libpq-fe.h"
#include "pg_getopt.h"
Go to the source code of this file.
Data Structures | |
struct | _param |
Macros | |
#define | BUFSIZE 1024 |
#define | PARAMS_ARRAY_SIZE 7 |
Enumerations | |
enum | trivalue { TRI_DEFAULT , TRI_NO , TRI_YES , TRI_DEFAULT , TRI_NO , TRI_YES , TRI_DEFAULT , TRI_NO , TRI_YES , TRI_DEFAULT , TRI_NO , TRI_YES } |
Functions | |
static int | vacuumlo (const char *database, const struct _param *param) |
static void | usage (const char *progname) |
int | main (int argc, char **argv) |
#define BUFSIZE 1024 |
Definition at line 32 of file vacuumlo.c.
#define PARAMS_ARRAY_SIZE 7 |
enum trivalue |
Enumerator | |
---|---|
TRI_DEFAULT | |
TRI_NO | |
TRI_YES | |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES | |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES | |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES |
Definition at line 34 of file vacuumlo.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 437 of file vacuumlo.c.
References _param::dry_run, exit(), get_progname(), getopt_long(), no_argument, optarg, optind, pg_fatal, _param::pg_host, pg_log_error, pg_log_error_hint, pg_logging_init(), _param::pg_port, _param::pg_prompt, pg_strdup(), _param::pg_user, port, _param::progname, progname, required_argument, _param::transaction_limit, TRI_DEFAULT, TRI_NO, TRI_YES, usage(), vacuumlo(), and _param::verbose.
|
static |
Definition at line 414 of file vacuumlo.c.
References printf, and progname.
Referenced by exec_command_slash_command_help(), main(), parse_psql_options(), peek_buffer_usage(), pg_notification_queue_usage(), pg_store_delegated_credential(), show_buffer_usage(), and show_wal_usage().
|
static |
Definition at line 62 of file vacuumlo.c.
References ALWAYS_SECURE_SEARCH_PATH_SQL, atooid, buf, BUFSIZE, conn, CONNECTION_BAD, CppAsString2, _param::dry_run, fflush(), fprintf, i, lo_unlink(), PARAMS_ARRAY_SIZE, password, _param::pg_host, pg_log_error, _param::pg_port, _param::pg_prompt, _param::pg_user, PGRES_COMMAND_OK, PGRES_TUPLES_OK, PQclear(), PQconnectdbParams(), PQconnectionNeedsPassword(), PQerrorMessage(), PQescapeIdentifier(), PQexec(), PQfinish(), PQfreemem(), PQgetvalue(), PQntuples(), PQresultStatus(), PQserverVersion(), PQstatus(), PQTRANS_INERROR, PQtransactionStatus(), _param::progname, res, simple_prompt(), snprintf, generate_unaccent_rules::stdout, success, _param::transaction_limit, TRI_NO, TRI_YES, values, and _param::verbose.
Referenced by main().