Header And Logo

PostgreSQL
| The world's most advanced open source database.

receivelog.h

Go to the documentation of this file.
00001 #include "access/xlogdefs.h"
00002 
00003 /*
00004  * Called before trying to read more data or when a segment is
00005  * finished. Return true to stop streaming.
00006  */
00007 typedef bool (*stream_stop_callback) (XLogRecPtr segendpos, uint32 timeline, bool segment_finished);
00008 
00009 extern bool CheckServerVersionForStreaming(PGconn *conn);
00010 extern bool ReceiveXlogStream(PGconn *conn,
00011                   XLogRecPtr startpos,
00012                   uint32 timeline,
00013                   char *sysidentifier,
00014                   char *basedir,
00015                   stream_stop_callback stream_stop,
00016                   int standby_message_timeout,
00017                   char *partial_suffix);