summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorHeikki Linnakangas2010-02-03 09:47:19 +0000
committerHeikki Linnakangas2010-02-03 09:47:19 +0000
commit808969d0e7ac2d2fdbd915c6a6ac9ec68b6f63f9 (patch)
tree0215738e25ef02df0eedee365a6a38ca57f7df37 /src/include/replication
parent47c5b8f5588da67a95dca8cb14b2bc1b7f291e15 (diff)
Add a message type header to the CopyData messages sent from primary
to standby in streaming replication. While we only have one message type at the moment, adding a message type header makes this easier to extend.
Diffstat (limited to 'src/include/replication')
-rw-r--r--src/include/replication/walreceiver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h
index 083eb4f07f..bf7ad41b06 100644
--- a/src/include/replication/walreceiver.h
+++ b/src/include/replication/walreceiver.h
@@ -5,7 +5,7 @@
*
* Portions Copyright (c) 2010-2010, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/replication/walreceiver.h,v 1.5 2010/01/27 15:27:51 heikki Exp $
+ * $PostgreSQL: pgsql/src/include/replication/walreceiver.h,v 1.6 2010/02/03 09:47:19 heikki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -66,7 +66,8 @@ extern WalRcvData *WalRcv;
typedef bool (*walrcv_connect_type) (char *conninfo, XLogRecPtr startpoint);
extern PGDLLIMPORT walrcv_connect_type walrcv_connect;
-typedef bool (*walrcv_receive_type) (int timeout, XLogRecPtr *recptr, char **buffer, int *len);
+typedef bool (*walrcv_receive_type) (int timeout, unsigned char *type,
+ char **buffer, int *len);
extern PGDLLIMPORT walrcv_receive_type walrcv_receive;
typedef void (*walrcv_disconnect_type) (void);