PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2025, 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"
14#include "getopt_long.h"
15#include "libpq-fe.h"
16#include "pqexpbuffer.h"
17
18extern void splitTableColumnsSpec(const char *spec, int encoding,
19 char **table, const char **columns);
20
21extern void appendQualifiedRelation(PQExpBuffer buf, const char *spec,
22 PGconn *conn, bool echo);
23
24extern bool yesno_prompt(const char *question);
25
26#endif /* COMMON_H */
#define question
Definition: indent_codes.h:41
int32 encoding
Definition: pg_database.h:41
static char * buf
Definition: pg_test_fsync.c:72
bool yesno_prompt(const char *question)
Definition: common.c:135
void splitTableColumnsSpec(const char *spec, int encoding, char **table, const char **columns)
Definition: common.c:33
void appendQualifiedRelation(PQExpBuffer buf, const char *spec, PGconn *conn, bool echo)
Definition: common.c:68
PGconn * conn
Definition: streamutil.c:53