~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/bin/scripts/common.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "postgres_fe.h"
 
2
 
 
3
#include "libpq-fe.h"
 
4
#include "pqexpbuffer.h"
 
5
#include "getopt_long.h"
 
6
 
 
7
#ifndef HAVE_INT_OPTRESET
 
8
int                     optreset;
 
9
#endif
 
10
 
 
11
const char *get_user_name(const char *progname);
 
12
 
 
13
#define _(x) gettext((x))
 
14
 
 
15
typedef void (*help_handler) (const char *);
 
16
 
 
17
void            handle_help_version_opts(int argc, char *argv[], const char *fixed_progname, help_handler hlp);
 
18
 
 
19
PGconn *connectDatabase(const char *dbname, const char *pghost, const char *pgport,
 
20
                const char *pguser, bool require_password, const char *progname);
 
21
 
 
22
PGresult *
 
23
                        executeQuery(PGconn *conn, const char *command, const char *progname, bool echo);
 
24
 
 
25
int
 
26
                        check_yesno_response(const char *string);