Make the streaming replication protocol messages architecture-independent.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 7 Nov 2012 16:59:12 +0000 (18:59 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 7 Nov 2012 17:09:13 +0000 (19:09 +0200)
commitadd6c3179a4d4fa3e62dd3e86a00f23303336bac
tree33503e16f48899a0d5faf4645863ad0b6cf2cbaf
parented5699dd1b883e193930448b7ad532e233de0bd7
Make the streaming replication protocol messages architecture-independent.

We used to send structs wrapped in CopyData messages, which works as long as
the client and server agree on things like endianess, timestamp format and
alignment. That's good enough for running a standby server, which has to run
on the same platform anyway, but it's useful for tools like pg_receivexlog
to work across platforms.

This breaks protocol compatibility of streaming replication, but we never
promised that to be compatible across versions, anyway.
doc/src/sgml/protocol.sgml
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/backend/utils/adt/timestamp.c
src/bin/pg_basebackup/receivelog.c
src/include/replication/walprotocol.h [deleted file]
src/include/utils/timestamp.h