*** pgsql/doc/src/sgml/protocol.sgml 2010/01/15 09:18:59 1.77 --- pgsql/doc/src/sgml/protocol.sgml 2010/02/03 09:47:19 1.78 *************** *** 1,4 **** ! Frontend/Backend Protocol --- 1,4 ---- ! Frontend/Backend Protocol *************** The commands accepted in walsender mode *** 4179,4190 **** already been recycled. On success, server responds with a CopyOutResponse message, and backend starts to stream WAL as CopyData messages. ! The payload in each CopyData message consists of an XLogRecPtr, ! indicating the starting point of the WAL in the message, immediately ! followed by the WAL data itself. A single WAL record is never split across two CopyData messages. When --- 4179,4243 ---- already been recycled. On success, server responds with a CopyOutResponse message, and backend starts to stream WAL as CopyData messages. + The payload in CopyData message consists of the following format. ! ! ! ! XLogData (B) ! ! ! ! ! ! ! Byte1('w') ! ! ! ! Identifies the message as WAL data. ! ! ! ! ! ! Int32 ! ! ! ! The log file number of the LSN, indicating the starting point of ! the WAL in the message. ! ! ! ! ! ! Int32 ! ! ! ! The byte offset of the LSN, indicating the starting point of ! the WAL in the message. ! ! ! ! ! ! Byten ! ! ! ! Data that forms part of WAL data stream. ! ! ! ! ! ! ! ! A single WAL record is never split across two CopyData messages. When