2011-10-26 14:13:33 -04:00
|
|
|
#include "libpq-fe.h"
|
|
|
|
|
|
|
|
|
|
extern const char *progname;
|
2013-02-25 07:48:27 -05:00
|
|
|
extern char *connection_string;
|
2011-10-26 14:13:33 -04:00
|
|
|
extern char *dbhost;
|
|
|
|
|
extern char *dbuser;
|
|
|
|
|
extern char *dbport;
|
2014-03-18 12:19:57 -04:00
|
|
|
extern char *dbname;
|
2011-10-26 14:13:33 -04:00
|
|
|
extern int dbgetpassword;
|
2014-01-31 22:45:17 -05:00
|
|
|
extern char *replication_slot;
|
2011-10-26 14:13:33 -04:00
|
|
|
|
|
|
|
|
/* Connection kept global so we can disconnect easily */
|
|
|
|
|
extern PGconn *conn;
|
|
|
|
|
|
2012-10-02 15:35:10 -04:00
|
|
|
extern PGconn *GetConnection(void);
|
2014-03-18 12:19:57 -04:00
|
|
|
|
|
|
|
|
extern int64 feGetCurrentTimestamp(void);
|
|
|
|
|
extern void feTimestampDifference(int64 start_time, int64 stop_time,
|
2014-05-06 12:12:18 -04:00
|
|
|
long *secs, int *microsecs);
|
2014-03-18 12:19:57 -04:00
|
|
|
|
|
|
|
|
extern bool feTimestampDifferenceExceeds(int64 start_time, int64 stop_time,
|
2014-05-06 12:12:18 -04:00
|
|
|
int msec);
|
2014-03-18 12:19:57 -04:00
|
|
|
extern void fe_sendint64(int64 i, char *buf);
|
|
|
|
|
extern int64 fe_recvint64(char *buf);
|