Skip to content

Commit de3483a

Browse files
committed
Update description of walrcv_receive() function to match reality.
1 parent 96189db commit de3483a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/backend/replication/README

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$PostgreSQL: pgsql/src/backend/replication/README,v 1.2 2010/01/20 09:16:24 heikki Exp $
1+
$PostgreSQL: pgsql/src/backend/replication/README,v 1.3 2010/03/24 06:25:39 heikki Exp $
22

33
Walreceiver - libpqwalreceiver API
44
----------------------------------
@@ -17,11 +17,14 @@ Establish connection to the primary, and starts streaming from 'startpoint'.
1717
Returns true on success.
1818

1919

20-
bool walrcv_receive(int timeout, XLogRecPtr *recptr, char **buffer, int *len)
21-
22-
Retrieve any WAL record available through the connection, blocking for
23-
maximum of 'timeout' ms.
20+
bool walrcv_receive(int timeout, unsigned char *type, char **buffer, int *len)
2421

22+
Retrieve any message available through the connection, blocking for
23+
maximum of 'timeout' ms. If a message was successfully read, returns true,
24+
otherwise false. On success, a pointer to the message payload is stored in
25+
*buffer, length in *len, and the type of message received in *type. The
26+
returned buffer is valid until the next call to walrcv_* functions, the
27+
caller should not attempt freeing it.
2528

2629
void walrcv_disconnect(void);
2730

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy