git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96189db)
Update description of walrcv_receive() function to match reality.
2010年3月24日 06:25:39 +0000 (06:25 +0000)
2010年3月24日 06:25:39 +0000 (06:25 +0000)

diff --git a/src/backend/replication/README b/src/backend/replication/README
index 8b15dea58ebbf193ee2693b43b49e24c6e06ead4..5819fd44de30b15535027a129df115aeb93ca5c2 100644 (file)
--- a/src/backend/replication/README
+++ b/src/backend/replication/README
@@ -1,4 +1,4 @@
-$PostgreSQL: pgsql/src/backend/replication/README,v 1.2 2010年01月20日 09:16:24 heikki Exp $
+$PostgreSQL: pgsql/src/backend/replication/README,v 1.3 2010年03月24日 06:25:39 heikki Exp $
Walreceiver - libpqwalreceiver API
----------------------------------
@@ -17,11 +17,14 @@ Establish connection to the primary, and starts streaming from 'startpoint'.
Returns true on success.
-bool walrcv_receive(int timeout, XLogRecPtr *recptr, char **buffer, int *len)
-
-Retrieve any WAL record available through the connection, blocking for
-maximum of 'timeout' ms.
+bool walrcv_receive(int timeout, unsigned char *type, char **buffer, int *len)
+Retrieve any message available through the connection, blocking for
+maximum of 'timeout' ms. If a message was successfully read, returns true,
+otherwise false. On success, a pointer to the message payload is stored in
+*buffer, length in *len, and the type of message received in *type. The
+returned buffer is valid until the next call to walrcv_* functions, the
+caller should not attempt freeing it.
void walrcv_disconnect(void);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /