1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00
Files
postgres/src/bin/pg_basebackup/streamutil.h
Magnus Hagander 63ab2befe0 Kill pg_basebackup background process when exiting
If an error occurs in the foreground (backup) process of pg_basebackup,
and we exit in a controlled way, the background process (streaming
xlog process) would stay around and keep streaming.
2014-02-12 18:45:18 +01:00

15 lines
320 B
C

#include "libpq-fe.h"
extern const char *progname;
extern char *connection_string;
extern char *dbhost;
extern char *dbuser;
extern char *dbport;
extern int dbgetpassword;
extern char *replication_slot;
/* Connection kept global so we can disconnect easily */
extern PGconn *conn;
extern PGconn *GetConnection(void);