47#define AppendQuotedIdentifier(b, s) AppendQuotedString(b, s, '"')
48#define AppendQuotedLiteral(b, s) AppendQuotedString(b, s, '\'')
49extern void AppendPlainCommandOption(PQExpBuffer buf,
50 bool use_new_option_syntax,
51 const char *option_name);
52extern void AppendStringCommandOption(PQExpBuffer buf,
53 bool use_new_option_syntax,
54 const char *option_name,
55 const char *option_value);
56extern void AppendIntegerCommandOption(PQExpBuffer buf,
57 bool use_new_option_syntax,
58 const char *option_name,
61extern bool GetSlotInformation(PGconn *conn, const char *slot_name,
62 XLogRecPtr *restart_lsn,
63 TimeLineID *restart_tli);
64extern bool RetrieveWalSegSize(PGconn *conn);
65extern TimestampTz feGetCurrentTimestamp(void);
66extern void feTimestampDifference(TimestampTz start_time, TimestampTz stop_time,
67 long *secs, int *microsecs);
69extern bool feTimestampDifferenceExceeds(TimestampTz start_time, TimestampTz stop_time,
71extern void fe_sendint64(int64 i, char *buf);
72extern int64 fe_recvint64(char *buf);
74#endif /* STREAMUTIL_H */
static bool slot_exists_ok
static const char * plugin
static XLogRecPtr startpos
static char buf[DEFAULT_XLOG_SEG_SIZE]
PGconn * GetConnection(void)
bool CreateReplicationSlot(PGconn *conn, const char *slot_name, const char *plugin, bool is_temporary, bool is_physical, bool reserve_wal, bool slot_exists_ok, bool two_phase, bool failover)
void AppendQuotedString(PQExpBuffer buf, const char *str, char quote)
bool DropReplicationSlot(PGconn *conn, const char *slot_name)
bool RunIdentifySystem(PGconn *conn, char **sysid, TimeLineID *starttli, XLogRecPtr *startpos, char **db_name)