2011-10-26 20:13:33 +02:00
|
|
|
#include "access/xlogdefs.h"
|
|
|
|
|
|
|
|
/*
|
2012-05-25 11:36:22 +02:00
|
|
|
* Called before trying to read more data or when a segment is
|
|
|
|
* finished. Return true to stop streaming.
|
2011-10-26 20:13:33 +02:00
|
|
|
*/
|
2012-05-25 11:36:22 +02:00
|
|
|
typedef bool (*stream_stop_callback)(XLogRecPtr segendpos, uint32 timeline, bool segment_finished);
|
2011-10-26 20:13:33 +02:00
|
|
|
|
|
|
|
extern bool ReceiveXlogStream(PGconn *conn,
|
|
|
|
XLogRecPtr startpos,
|
|
|
|
uint32 timeline,
|
|
|
|
char *sysidentifier,
|
|
|
|
char *basedir,
|
2012-05-25 11:36:22 +02:00
|
|
|
stream_stop_callback stream_stop,
|
|
|
|
int standby_message_timeout,
|
|
|
|
bool rename_partial);
|