Re: Suspicious behaviour on applying XLOG_HEAP2_VISIBLE.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Noah Misch <noah(at)leadboat(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Suspicious behaviour on applying XLOG_HEAP2_VISIBLE.
Date: 2016-04-15 19:18:31
Message-ID: CANP8+jJsW4e3WcSM2u2K4i-JbrL6Kdc++gD3uZesWybnn2zc+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15 April 2016 at 20:01, Andres Freund <andres(at)anarazel(dot)de> wrote:

> On 2016-04-15 19:59:06 +0100, Simon Riggs wrote:
> > For me, the issue is that we need to do something to catch bugs. The
> > existing code does not have any test at all to check whether we are doing
> > the wrong thing - it just lets the wrong thing happen.
>
> But sending the message, without assigning an xid, *IS* the right thing
> to do here? We shouldn't assign an xid, and we need to send the message
> out to the standbys.
>
>
> > Fixing it by forcing a new behaviour might be the right thing to do going
> > forwards, but I don't much like the idea of forcing new behaviour in back
> > branches. It might fix this bug, but can easily cause others.
>
> What's your alternative? Assigning an xid in the middle of vacuum isn't
> ok, breaking vacuum isn't either?
>

In my understanding we have two choices for this bug

1) assign an xid so it forces sending a message (message plus xid)
2) send a message without assigning an xid (message only)

(1) seems like it is worse for backpatching, IMHO, though I am willing to
hear other thoughts or options

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-04-15 19:18:36 Re: [COMMITTERS] pgsql: Add new catalog called pg_init_privs
Previous Message Andres Freund 2016-04-15 19:01:22 Re: Suspicious behaviour on applying XLOG_HEAP2_VISIBLE.