]> granicus.if.org Git - postgresql/blob - src/bin/psql/copy.h
More fixes for psql ^C handling, especially during copy. Still doesn't
[postgresql] / src / bin / psql / copy.h
1 /*
2  * psql - the PostgreSQL interactive terminal
3  *
4  * Copyright 2000 by PostgreSQL Global Development Group
5  *
6  * $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.9 2000/03/01 21:09:58 petere Exp $
7  */
8 #ifndef COPY_H
9 #define COPY_H
10
11 #include "libpq-fe.h"
12
13 extern bool copy_in_state;
14
15 /* handler for \copy */
16 bool            do_copy(const char *args);
17
18 /* lower level processors for copy in/out streams */
19
20 bool            handleCopyOut(PGconn *conn, FILE *copystream);
21 bool            handleCopyIn(PGconn *conn, FILE *copystream, const char *prompt);
22
23 #endif