PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <signal.h>
#include <unistd.h>
#include "common.h"
#include "common/connect.h"
#include "common/logging.h"
#include "common/string.h"
#include "fe_utils/cancel.h"
#include "fe_utils/query_utils.h"
#include "fe_utils/string_utils.h"
Go to the source code of this file.
Macros | |
#define | PG_YESLETTER gettext_noop("y") |
#define | PG_NOLETTER gettext_noop("n") |
Functions | |
void | splitTableColumnsSpec (const char *spec, int encoding, char **table, const char **columns) |
void | appendQualifiedRelation (PQExpBuffer buf, const char *spec, PGconn *conn, bool echo) |
bool | yesno_prompt (const char *question) |
#define PG_NOLETTER gettext_noop("n") |
#define PG_YESLETTER gettext_noop("y") |
void appendQualifiedRelation | ( | PQExpBuffer | buf, |
const char * | spec, | ||
PGconn * | conn, | ||
bool | echo | ||
) |
Definition at line 69 of file common.c.
References ALWAYS_SECURE_SEARCH_PATH_SQL, appendPQExpBufferStr(), appendStringLiteralConn(), buf, conn, PQExpBufferData::data, executeCommand(), executeQuery(), exit(), fmtQualifiedId(), initPQExpBuffer(), ngettext, pg_free(), pg_log_error, PQclear(), PQclientEncoding(), PQfinish(), PQgetvalue(), PQntuples(), res, splitTableColumnsSpec(), and termPQExpBuffer().
Referenced by cluster_one_database(), get_parallel_object_list(), and run_reindex_command().
void splitTableColumnsSpec | ( | const char * | spec, |
int | encoding, | ||
char ** | table, | ||
const char ** | columns | ||
) |
Definition at line 34 of file common.c.
References encoding, pnstrdup(), and PQmblenBounded().
Referenced by appendQualifiedRelation(), and vacuum_one_database().
bool yesno_prompt | ( | const char * | question | ) |
Definition at line 136 of file common.c.
References _, free, PG_NOLETTER, PG_YESLETTER, printf, question, simple_prompt(), and snprintf.
Referenced by main().