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 
12 #include "replication/logical.h"
13 
14 extern int logical_read_local_xlog_page(XLogReaderState *state,
15 							 XLogRecPtr targetPagePtr,
16 							 int reqLen, XLogRecPtr targetRecPtr,
17 							 char *cur_page, TimeLineID *pageTLI);
18 
19 extern Datum pg_logical_slot_get_changes(PG_FUNCTION_ARGS);
20 extern Datum pg_logical_slot_get_binary_changes(PG_FUNCTION_ARGS);
21 extern Datum pg_logical_slot_peek_changes(PG_FUNCTION_ARGS);
22 extern Datum pg_logical_slot_peek_binary_changes(PG_FUNCTION_ARGS);
23 
24 extern Datum pg_logical_emit_message_bytea(PG_FUNCTION_ARGS);
25 extern Datum pg_logical_emit_message_text(PG_FUNCTION_ARGS);
26 #endif
27