PostgreSQL Source Code  git master
common.h
Go to the documentation of this file.
1 /*
2  * common.h
3  * Common support routines for bin/scripts/
4  *
5  * Copyright (c) 2003-2021, PostgreSQL Global Development Group
6  *
7  * src/bin/scripts/common.h
8  */
9 #ifndef COMMON_H
10 #define COMMON_H
11 
12 #include "common/username.h"
13 #include "fe_utils/connect_utils.h"
14 #include "getopt_long.h" /* pgrminclude ignore */
15 #include "libpq-fe.h"
16 #include "pqexpbuffer.h" /* pgrminclude ignore */
17 
18 extern void splitTableColumnsSpec(const char *spec, int encoding,
19  char **table, const char **columns);
20 
21 extern void appendQualifiedRelation(PQExpBuffer buf, const char *name,
22  PGconn *conn, bool echo);
23 
24 extern bool yesno_prompt(const char *question);
25 
26 #endif /* COMMON_H */
void splitTableColumnsSpec(const char *spec, int encoding, char **table, const char **columns)
Definition: common.c:34
bool yesno_prompt(const char *question)
Definition: common.c:136
PGconn * conn
Definition: streamutil.c:54
static char * buf
Definition: pg_test_fsync.c:68
int32 encoding
Definition: pg_database.h:41
const char * name
Definition: encode.c:515
void appendQualifiedRelation(PQExpBuffer buf, const char *name, PGconn *conn, bool echo)
Definition: common.c:69