PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
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
"
13
#include "
fe_utils/connect_utils.h
"
14
#include "
getopt_long.h
"
15
#include "
libpq-fe.h
"
16
#include "
pqexpbuffer.h
"
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
*spec,
22
PGconn
*
conn
,
bool
echo);
23
24
extern
bool
yesno_prompt
(
const
char
*
question
);
25
26
#endif
/* COMMON_H */
connect_utils.h
getopt_long.h
question
#define question
Definition:
indent_codes.h:41
libpq-fe.h
encoding
int32 encoding
Definition:
pg_database.h:41
buf
static char * buf
Definition:
pg_test_fsync.c:72
pqexpbuffer.h
yesno_prompt
bool yesno_prompt(const char *question)
Definition:
common.c:135
splitTableColumnsSpec
void splitTableColumnsSpec(const char *spec, int encoding, char **table, const char **columns)
Definition:
common.c:33
appendQualifiedRelation
void appendQualifiedRelation(PQExpBuffer buf, const char *spec, PGconn *conn, bool echo)
Definition:
common.c:68
conn
PGconn * conn
Definition:
streamutil.c:53
PQExpBufferData
Definition:
pqexpbuffer.h:45
pg_conn
Definition:
libpq-int.h:377
username.h
src
bin
scripts
common.h
Generated on Tue Jan 7 2025 06:13:23 for PostgreSQL Source Code by
1.9.4