pgsql: Include more status information in walsender results

Started by Magnus Haganderalmost 15 years ago3 messages
#1Magnus Hagander
magnus@hagander.net

Include more status information in walsender results

Add the current xlog insert location to the response of
IDENTIFY_SYSTEM, and adds result sets containing start
and stop location of backups to BASE_BACKUP responses.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=76129e7f14b4605db0a046e13abef0e255ffe007

Modified Files
--------------
doc/src/sgml/protocol.sgml | 44 +++++++++++++++++----
src/backend/replication/basebackup.c | 39 ++++++++++++++++++
src/backend/replication/walsender.c | 27 +++++++++++--
src/bin/pg_basebackup/pg_basebackup.c | 70 ++++++++++++++++++++++++++++++++-
4 files changed, 167 insertions(+), 13 deletions(-)

#2Robert Haas
robertmhaas@gmail.com
In reply to: Magnus Hagander (#1)
Re: [COMMITTERS] pgsql: Include more status information in walsender results

On Thu, Feb 3, 2011 at 7:56 AM, Magnus Hagander <magnus@hagander.net> wrote:

Include more status information in walsender results

Add the current xlog insert location to the response of
IDENTIFY_SYSTEM, and adds result sets containing start
and stop location of backups to BASE_BACKUP responses.

Does this have anything to do with the following error message I'm now
getting when trying to use streaming replication?

FATAL: invalid response from primary server
DETAIL: Expected 1 tuple with 2 fields, got 1 tuples with 3 fields.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

#3Magnus Hagander
magnus@hagander.net
In reply to: Robert Haas (#2)
Re: [COMMITTERS] pgsql: Include more status information in walsender results

On Sun, Feb 6, 2011 at 01:54, Robert Haas <robertmhaas@gmail.com> wrote:

On Thu, Feb 3, 2011 at 7:56 AM, Magnus Hagander <magnus@hagander.net> wrote:

Include more status information in walsender results

Add the current xlog insert location to the response of
IDENTIFY_SYSTEM, and adds result sets containing start
and stop location of backups to BASE_BACKUP responses.

Does this have anything to do with the following error message I'm now
getting when trying to use streaming replication?

FATAL:  invalid response from primary server
DETAIL:  Expected 1 tuple with 2 fields, got 1 tuples with 3 fields.

Yes. I believe I forgot to "git add" that one file that was off hiding
in another directory.

Thanks, fix applied.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/