/* * SQL function returning the changestream in binary, only peeking ahead. */ Datum pg_logical_slot_peek_binary_changes(PG_FUNCTION_ARGS) { Datum ret = pg_logical_slot_get_changes_guts(fcinfo, false, true); return ret; }
/* * SQL function returning the changestream in binary, consuming the data. */ Datum pg_logical_slot_get_binary_changes(PG_FUNCTION_ARGS) { return pg_logical_slot_get_changes_guts(fcinfo, true, true); }
/* * SQL function returning the changestream as text, only peeking ahead. */ Datum pg_logical_slot_peek_changes(PG_FUNCTION_ARGS) { return pg_logical_slot_get_changes_guts(fcinfo, false, false); }