|
PostgreSQL Source Code git master
|
#include "postgres_fe.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 | eary |
| struct | options |
Macros | |
| #define | PARAMS_ARRAY_SIZE 7 |
Functions | |
| static void | help (const char *progname) |
| void | get_opts (int argc, char **argv, struct options *my_opts) |
| void | add_one_elt (char *eltname, eary *eary) |
| char * | get_comma_elts (eary *eary) |
| PGconn * | sql_conn (struct options *my_opts) |
| int | sql_exec (PGconn *conn, const char *todo, bool quiet) |
| void | sql_exec_dumpalldbs (PGconn *conn, struct options *opts) |
| void | sql_exec_dumpalltables (PGconn *conn, struct options *opts) |
| void | sql_exec_searchtables (PGconn *conn, struct options *opts) |
| void | sql_exec_dumpalltbspc (PGconn *conn, struct options *opts) |
| int | main (int argc, char **argv) |
| #define PARAMS_ARRAY_SIZE 7 |
Definition at line 235 of file oid2name.c.
References eary::alloc, eary::array, fb(), eary::num, pg_malloc(), pg_realloc(), and pg_strdup().
Referenced by get_opts().
Definition at line 261 of file oid2name.c.
References eary::array, fb(), i, eary::num, pg_malloc(), pg_strdup(), PQescapeString(), and sprintf.
Referenced by sql_exec_searchtables().
Definition at line 63 of file oid2name.c.
References add_one_elt(), fb(), get_progname(), getopt_long(), help(), no_argument, optarg, optind, pg_log_error, pg_log_error_hint, pg_logging_init(), pg_strdup(), progname, and required_argument.
Referenced by main().
Definition at line 201 of file oid2name.c.
Definition at line 583 of file oid2name.c.
References fb(), get_opts(), pg_malloc(), PQfinish(), printf, sql_conn(), sql_exec_dumpalldbs(), sql_exec_dumpalltables(), sql_exec_dumpalltbspc(), and sql_exec_searchtables().
Definition at line 295 of file oid2name.c.
References ALWAYS_SECURE_SEARCH_PATH_SQL, conn, CONNECTION_BAD, fb(), keywords, PARAMS_ARRAY_SIZE, password, pg_fatal, pg_log_error, PGRES_TUPLES_OK, PQclear, PQconnectdbParams(), PQconnectionNeedsPassword(), PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus, PQstatus(), simple_prompt(), and values.
Referenced by main().
Definition at line 372 of file oid2name.c.
References conn, fb(), fprintf, free, i, j, pg_log_error, pg_log_error_detail, pg_malloc(), PQclear, PQerrorMessage(), PQexec(), PQfinish(), PQfname, PQgetvalue, PQnfields, PQntuples, and PQresultStatus.
Referenced by sql_exec_dumpalldbs(), sql_exec_dumpalltables(), sql_exec_dumpalltbspc(), and sql_exec_searchtables().
Definition at line 452 of file oid2name.c.
References conn, fb(), opts, snprintf, and sql_exec().
Referenced by main().
Definition at line 469 of file oid2name.c.
References conn, CppAsString2, fb(), opts, snprintf, and sql_exec().
Referenced by main().
Definition at line 571 of file oid2name.c.
References conn, fb(), opts, snprintf, and sql_exec().
Referenced by main().
Definition at line 501 of file oid2name.c.
References conn, CppAsString2, fb(), free, get_comma_elts(), opts, pg_malloc(), psprintf(), sprintf, and sql_exec().
Referenced by main().