2 * psql - the PostgreSQL interactive terminal
4 * Copyright 2000 by PostgreSQL Global Development Group
6 * $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.12 2000/08/29 09:36:48 petere Exp $
16 char *xstrdup(const char *string);
18 bool setQFout(const char *fname);
21 void psql_error(const char *fmt,...);
24 /* This checks the format string for consistency. */
25 void psql_error(const char *fmt,...) __attribute__((format(printf, 1, 2)));
29 void NoticeProcessor(void *arg, const char *message);
31 char *simple_prompt(const char *prompt, int maxlen, bool echo);
33 extern volatile bool cancel_pressed;
34 extern PGconn *cancelConn;
37 void handle_sigint(SIGNAL_ARGS);
39 #endif /* not WIN32 */
41 PGresult *PSQLexec(const char *query);
43 bool SendQuery(const char *query);