PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
copy.h
Go to the documentation of this file.
1
/*
2
* psql - the PostgreSQL interactive terminal
3
*
4
* Copyright (c) 2000-2026, PostgreSQL Global Development Group
5
*
6
* src/bin/psql/copy.h
7
*/
8
#ifndef COPY_H
9
#define COPY_H
10
11
#include "
libpq-fe.h
"
12
13
14
/* handler for \copy */
15
extern
bool
do_copy
(
const
char
*args);
16
17
/* lower level processors for copy in/out streams */
18
19
extern
bool
handleCopyOut
(
PGconn
*
conn
,
FILE
*
copystream
,
20
PGresult
**res);
21
extern
bool
handleCopyIn
(
PGconn
*
conn
,
FILE
*
copystream
,
bool
isbinary
,
22
PGresult
**res);
23
24
#endif
handleCopyOut
bool handleCopyOut(PGconn *conn, FILE *copystream, PGresult **res)
Definition
copy.c:434
do_copy
bool do_copy(const char *args)
Definition
copy.c:268
handleCopyIn
bool handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
Definition
copy.c:511
libpq-fe.h
fb
static int fb(int x)
Definition
preproc-init.c:92
conn
PGconn * conn
Definition
streamutil.c:52
pg_conn
Definition
libpq-int.h:372
pg_result
Definition
libpq-int.h:165
src
bin
psql
copy.h
Generated on Thu Jan 29 2026 06:13:16 for PostgreSQL Source Code by
1.9.8