logicalfuncs.h 967 B

1234567891011121314151617181920212223242526
  1. /*-------------------------------------------------------------------------
  2. * logicalfuncs.h
  3. * PostgreSQL WAL to logical transformation support functions
  4. *
  5. * Copyright (c) 2012-2016, PostgreSQL Global Development Group
  6. *
  7. *-------------------------------------------------------------------------
  8. */
  9. #ifndef LOGICALFUNCS_H
  10. #define LOGICALFUNCS_H
  11. #include "replication/logical.h"
  12. extern int logical_read_local_xlog_page(XLogReaderState *state,
  13. XLogRecPtr targetPagePtr,
  14. int reqLen, XLogRecPtr targetRecPtr,
  15. char *cur_page, TimeLineID *pageTLI);
  16. extern Datum pg_logical_slot_get_changes(PG_FUNCTION_ARGS);
  17. extern Datum pg_logical_slot_get_binary_changes(PG_FUNCTION_ARGS);
  18. extern Datum pg_logical_slot_peek_changes(PG_FUNCTION_ARGS);
  19. extern Datum pg_logical_slot_peek_binary_changes(PG_FUNCTION_ARGS);
  20. extern Datum pg_logical_emit_message_bytea(PG_FUNCTION_ARGS);
  21. extern Datum pg_logical_emit_message_text(PG_FUNCTION_ARGS);
  22. #endif