pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S
5+ messages / 1 participants
[nested] [flat]

* pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S
@ 2015-02-06 09:33  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2015-02-06 09:33 UTC (permalink / raw)
  To: pgsql-committers

Report WAL flush, not insert, position in replication IDENTIFY_SYSTEM

When beginning streaming replication, the client usually issues the
IDENTIFY_SYSTEM command, which used to return the current WAL insert
position. That's not suitable for the intended purpose of that field,
however. pg_receivexlog uses it to start replication from the reported
point, but if it hasn't been flushed to disk yet, it will fail. Change
IDENTIFY_SYSTEM to report the flush position instead.

Backpatch to 9.1 and above. 9.0 doesn't report any WAL position.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3bc4c694271bfe28b909f43d45fe5168c18ad5b8

Modified Files
--------------
doc/src/sgml/protocol.sgml          |    2 +-
src/backend/replication/walsender.c |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S
@ 2015-02-06 09:33  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2015-02-06 09:33 UTC (permalink / raw)
  To: pgsql-committers

Report WAL flush, not insert, position in replication IDENTIFY_SYSTEM

When beginning streaming replication, the client usually issues the
IDENTIFY_SYSTEM command, which used to return the current WAL insert
position. That's not suitable for the intended purpose of that field,
however. pg_receivexlog uses it to start replication from the reported
point, but if it hasn't been flushed to disk yet, it will fail. Change
IDENTIFY_SYSTEM to report the flush position instead.

Backpatch to 9.1 and above. 9.0 doesn't report any WAL position.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2af568c6b50293bedb10d4ebb8dca9fe13f435c5

Modified Files
--------------
doc/src/sgml/protocol.sgml          |    2 +-
src/backend/replication/walsender.c |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S
@ 2015-02-06 09:33  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2015-02-06 09:33 UTC (permalink / raw)
  To: pgsql-committers

Report WAL flush, not insert, position in replication IDENTIFY_SYSTEM

When beginning streaming replication, the client usually issues the
IDENTIFY_SYSTEM command, which used to return the current WAL insert
position. That's not suitable for the intended purpose of that field,
however. pg_receivexlog uses it to start replication from the reported
point, but if it hasn't been flushed to disk yet, it will fail. Change
IDENTIFY_SYSTEM to report the flush position instead.

Backpatch to 9.1 and above. 9.0 doesn't report any WAL position.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5f0ba4abb33640205f38e5bee1e981da25175acf

Modified Files
--------------
doc/src/sgml/protocol.sgml          |    2 +-
src/backend/replication/walsender.c |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S
@ 2015-02-06 09:33  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2015-02-06 09:33 UTC (permalink / raw)
  To: pgsql-committers

Report WAL flush, not insert, position in replication IDENTIFY_SYSTEM

When beginning streaming replication, the client usually issues the
IDENTIFY_SYSTEM command, which used to return the current WAL insert
position. That's not suitable for the intended purpose of that field,
however. pg_receivexlog uses it to start replication from the reported
point, but if it hasn't been flushed to disk yet, it will fail. Change
IDENTIFY_SYSTEM to report the flush position instead.

Backpatch to 9.1 and above. 9.0 doesn't report any WAL position.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ff16b40f8cac67a740f4edaa9fc2d9c7ba44c73a

Modified Files
--------------
doc/src/sgml/protocol.sgml          |    2 +-
src/backend/replication/walsender.c |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S
@ 2015-02-06 09:33  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2015-02-06 09:33 UTC (permalink / raw)
  To: pgsql-committers

Report WAL flush, not insert, position in replication IDENTIFY_SYSTEM

When beginning streaming replication, the client usually issues the
IDENTIFY_SYSTEM command, which used to return the current WAL insert
position. That's not suitable for the intended purpose of that field,
however. pg_receivexlog uses it to start replication from the reported
point, but if it hasn't been flushed to disk yet, it will fail. Change
IDENTIFY_SYSTEM to report the flush position instead.

Backpatch to 9.1 and above. 9.0 doesn't report any WAL position.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0d36d9f2b9a2178bb19ffbe663e39818f51a0f82

Modified Files
--------------
doc/src/sgml/protocol.sgml          |    2 +-
src/backend/replication/walsender.c |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2015-02-06 09:33 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 09:33 pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-02-06 09:33 pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-02-06 09:33 pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-02-06 09:33 pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-02-06 09:33 pgsql: Report WAL flush, not insert, position in replication IDENTIFY_S Heikki Linnakangas <heikki.linnakangas@iki.fi>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox