pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix pg_receivexlog --synchronous
10+ messages / 7 participants
[nested] [flat]

* pgsql: Fix pg_receivexlog --synchronous
@ 2016-08-29 11:19 Simon Riggs <simon@2ndQuadrant.com>
  2016-08-29 11:34 ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
  2016-08-29 14:08 ` Re: pgsql: Fix pg_receivexlog --synchronous Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 2 replies; 10+ messages in thread

From: Simon Riggs @ 2016-08-29 11:19 UTC (permalink / raw)
  To: pgsql-committers

Fix pg_receivexlog --synchronous

Make pg_receivexlog work correctly with —-synchronous without slots

Backpatch to 9.5

Gabriele Bartolini, reviewed by Michael Paquier and Simon Riggs

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9050e5c89dc08fc217895c67b9f99b3b4f4bd539

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 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] 10+ messages in thread

* Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
@ 2016-08-29 11:34 ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-08-29 12:16   ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Michael Paquier <michael.paquier@gmail.com>
  2016-08-29 15:39   ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Andres Freund <andres@anarazel.de>
  2016-08-29 16:24   ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Bruce Momjian <bruce@momjian.us>
  2016-08-31 13:24   ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndquadrant.com>
  1 sibling, 4 replies; 10+ messages in thread

From: Tom Lane @ 2016-08-29 11:34 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-hackers@postgreSQL.org

Simon Riggs <simon@2ndQuadrant.com> writes:
> Fix pg_receivexlog --synchronous

The buildfarm says you broke the 9.5 branch.

In general, pushing inessential patches just a few hours before a wrap
deadline is a dangerous business.  Pushing them without any testing
is close to irresponsible.

			regards, tom lane


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



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

* Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
  2016-08-29 11:34 ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-08-29 12:16   ` Michael Paquier <michael.paquier@gmail.com>
  3 siblings, 0 replies; 10+ messages in thread

From: Michael Paquier @ 2016-08-29 12:16 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

On Mon, Aug 29, 2016 at 8:34 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Fix pg_receivexlog --synchronous
>
> The buildfarm says you broke the 9.5 branch.
>
> In general, pushing inessential patches just a few hours before a wrap
> deadline is a dangerous business.  Pushing them without any testing
> is close to irresponsible.

This area of the code has faced some refactoring from Magnus lately,
so you need this on REL9_5_STABLE:
inline patch 1: src/bin/pg_basebackup/receivelog.c (+0/-0 lines) download inline-1.patch--- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -534,7 +534,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr
startpos, uint32 timeline, } else { - if (stream->synchronous) + if (synchronous) reportFlushPosition = true; else reportFlushPosition = false; -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers Patches and attachments: download all (2 files, .tar.gz)
fix-receivexlog-95.patch (application/x-download, 423B) download diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index ba7acfb..f8bd551 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -534,7 +534,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, } else { - if (stream->synchronous) + if (synchronous) reportFlushPosition = true; else reportFlushPosition = false;
^ permalink raw reply [nested|flat] 10+ messages in thread

* Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
  2016-08-29 11:34 ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-08-29 15:39   ` Andres Freund <andres@anarazel.de>
  2016-08-29 15:49     ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
  3 siblings, 1 reply; 10+ messages in thread

From: Andres Freund @ 2016-08-29 15:39 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-hackers@postgreSQL.org

On 2016-08-29 07:34:52 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
> > Fix pg_receivexlog --synchronous
> 
> The buildfarm says you broke the 9.5 branch.
> 
> In general, pushing inessential patches just a few hours before a wrap
> deadline is a dangerous business.  Pushing them without any testing
> is close to irresponsible.

And the comment change doesn't actually seem an improvement, because it
makes it harder to understand why a slot forces this to be enabled.

Do we want to revert this until the release, or does somebody want to
push the fix?

Andres


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



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

* Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
  2016-08-29 11:34 ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
  2016-08-29 15:39   ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Andres Freund <andres@anarazel.de>
@ 2016-08-29 15:49     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 10+ messages in thread

From: Tom Lane @ 2016-08-29 15:49 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-hackers@postgreSQL.org

Andres Freund <andres@anarazel.de> writes:
> Do we want to revert this until the release, or does somebody want to
> push the fix?

If this had broken the 9.6 branch I would have already summarily
reverted it.  Since it didn't, my only real concern vis-a-vis today's
release is that the build failure in 9.5 calls into question the
quality of the testing that happened in 9.6.  9.6 is still pretty
close to HEAD, but not so close that it's a good idea to push patches
you have not tested in that branch.

			regards, tom lane


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



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

* Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
  2016-08-29 11:34 ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-08-29 16:24   ` Bruce Momjian <bruce@momjian.us>
  3 siblings, 0 replies; 10+ messages in thread

From: Bruce Momjian @ 2016-08-29 16:24 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-hackers@postgreSQL.org

On Mon, Aug 29, 2016 at 07:34:52AM -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
> > Fix pg_receivexlog --synchronous
> 
> The buildfarm says you broke the 9.5 branch.
> 
> In general, pushing inessential patches just a few hours before a wrap
> deadline is a dangerous business.  Pushing them without any testing
> is close to irresponsible.

Not being around to fix the breakage after the commit isn't great
either.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +


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



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

* Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
  2016-08-29 11:34 ` Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-08-31 13:24   ` Simon Riggs <simon@2ndquadrant.com>
  3 siblings, 0 replies; 10+ messages in thread

From: Simon Riggs @ 2016-08-31 13:24 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; PostgreSQL-development <pgsql-hackers@postgresql.org>

On 29 August 2016 at 12:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Fix pg_receivexlog --synchronous
>
> The buildfarm says you broke the 9.5 branch.
>
> In general, pushing inessential patches just a few hours before a wrap
> deadline is a dangerous business.  Pushing them without any testing
> is close to irresponsible.

Sorry about that everybody. Thanks to Alvaro for doing that in my absence.

I pushed to 9.5 because of a misunderstanding that the author was
saying to me they had also tested it for 9.5. It was not knowingly
untested, but responsibility and mistake was mine in not confirming
that with my own eyes before pushing.

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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



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

* Re: pgsql: Fix pg_receivexlog --synchronous
  2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
@ 2016-08-29 14:08 ` Andrew Dunstan <andrew@dunslane.net>
  1 sibling, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2016-08-29 14:08 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers



On 08/29/2016 07:19 AM, Simon Riggs wrote:
> Fix pg_receivexlog --synchronous
>
> Make pg_receivexlog work correctly with —-synchronous without slots
>
> Backpatch to 9.5
>
> Gabriele Bartolini, reviewed by Michael Paquier and Simon Riggs
>
> Branch
> ------
> REL9_5_STABLE
>
>


Appears to have broken 9.5. See buildfarm.

cheers

andrew


-- 
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] 10+ messages in thread

* pgsql: Fix pg_receivexlog --synchronous
@ 2016-08-29 11:19 Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Simon Riggs @ 2016-08-29 11:19 UTC (permalink / raw)
  To: pgsql-committers

Fix pg_receivexlog --synchronous

Make pg_receivexlog work correctly with —-synchronous without slots

Backpatch to 9.5

Gabriele Bartolini, reviewed by Michael Paquier and Simon Riggs

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/216fd7fe77c693a9595bb7550de2927dde650218

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 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] 10+ messages in thread

* pgsql: Fix pg_receivexlog --synchronous
@ 2016-08-29 11:19 Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Simon Riggs @ 2016-08-29 11:19 UTC (permalink / raw)
  To: pgsql-committers

Fix pg_receivexlog --synchronous

Make pg_receivexlog work correctly with --synchronous without slots

Backpatch to 9.5

Gabriele Bartolini, reviewed by Michael Paquier and Simon Riggs

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/49340627f9821e447f135455d942f7d5e96cae6d

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 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] 10+ messages in thread


end of thread, other threads:[~2016-08-31 13:24 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
2016-08-29 11:34 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-08-29 12:16   ` Michael Paquier <michael.paquier@gmail.com>
2016-08-29 15:39   ` Andres Freund <andres@anarazel.de>
2016-08-29 15:49     ` Tom Lane <tgl@sss.pgh.pa.us>
2016-08-29 16:24   ` Bruce Momjian <bruce@momjian.us>
2016-08-31 13:24   ` Simon Riggs <simon@2ndquadrant.com>
2016-08-29 14:08 ` Andrew Dunstan <andrew@dunslane.net>
2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>
2016-08-29 11:19 pgsql: Fix pg_receivexlog --synchronous Simon Riggs <simon@2ndQuadrant.com>

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