summaryrefslogtreecommitdiff
path: root/src/bin/psql/common.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-10-30 23:11:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-10-30 23:11:27 +0000
commit44e8a968e33f04974edc8ac9f184d009b036bbb7 (patch)
treedb4ddd8e717a63555273096289f4fa56f7a817ed /src/bin/psql/common.h
parent80559fa9e9657ecfdb92a210971b8d0aa6e82e39 (diff)
Invent a new, more thread-safe version of PQrequestCancel, called PQcancel.
Use this new function in psql. Implement query cancellation in psql for Windows. Code by Magnus Hagander, documentation and minor editorialization by Tom Lane.
Diffstat (limited to 'src/bin/psql/common.h')
-rw-r--r--src/bin/psql/common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h
index e9404ae256f..cf917cedca9 100644
--- a/src/bin/psql/common.h
+++ b/src/bin/psql/common.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.39 2004/08/29 04:13:02 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.40 2004/10/30 23:10:50 tgl Exp $
*/
#ifndef COMMON_H
#define COMMON_H
@@ -48,7 +48,9 @@ extern void ResetCancelConn(void);
#ifndef WIN32
extern void handle_sigint(SIGNAL_ARGS);
-#endif /* not WIN32 */
+#else
+extern void setup_cancel_handler(void);
+#endif
extern PGresult *PSQLexec(const char *query, bool start_xact);