1/*-------------------------------------------------------------------------
5 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * src/bin/pg_basebackup/receivelog.h
9 *-------------------------------------------------------------------------
20 * Called before trying to read more data or when a segment is
21 * finished. Return true to stop streaming.
26 * Global parameters when receiving xlog stream. For details about the individual fields,
27 * see the function comment for ReceiveXlogStream().
37 bool mark_done;
/* Mark segment as done in generated archive */
38 bool do_sync;
/* Flush to disk to ensure consistent state of
44 * and check stream_stop() when there is any */
57#endif /* RECEIVELOG_H */
bool(* stream_stop_callback)(XLogRecPtr segendpos, uint32 timeline, bool segment_finished)
struct StreamCtl StreamCtl
bool ReceiveXlogStream(PGconn *conn, StreamCtl *stream)
bool CheckServerVersionForStreaming(PGconn *conn)
stream_stop_callback stream_stop
int standby_message_timeout
WalWriteMethod * walmethod