pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: Craig Ringer <craig@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Erik Rijkers <er@xs4all.nl>
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Re: snapbuild woes
Date: Mon, 1 May 2017 07:16:37 +0200
Message-ID: <6ad87d3c-020b-df2b-5046-65bff666caad@2ndquadrant.com> (raw )
In-Reply-To: <CAMsr+YFMDPm7YcPp57Maw1jYSvD0CooKQSYZ=FAqfJLaYV-=Jw@mail.gmail.com >
References: <20161212223338.bmhswrdaipttvcve@alap3.anarazel.de >
<7023017e-8b08-eaba-396c-80baf0a793c0@2ndquadrant.com >
<7286ebe9-cb1b-cf1a-f85b-fbe3402ea0bf@2ndquadrant.com >
<9a897b86-46e1-9915-ee4c-da02e4ff6a95@2ndquadrant.com >
<51f65289-54f8-2256-d107-937d662d69f1@2ndquadrant.com >
<f41d64c7-1ae2-fac7-bf7f-f24dfe2d33bd@2ndquadrant.com >
<20170413002959.apytyi5lkknauauj@alap3.anarazel.de >
<0d06dfc1-0bc5-c3ab-3555-24e2f275d7fa@2ndquadrant.com >
<30242bc6-eca4-b7bb-670e-8d0458753a8c@2ndquadrant.com >
<20170501005921.qcqd7w2njpv3av6s@alap3.anarazel.de >
<20170501013529.sejtgo2acxbvq26q@alap3.anarazel.de >
<209861fc-718f-0a7b-3a1d-36512865c209@2ndquadrant.com >
<CAMsr+YFMDPm7YcPp57Maw1jYSvD0CooKQSYZ=FAqfJLaYV-=Jw@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 01/05/17 04:29, Craig Ringer wrote:
> On 1 May 2017 at 09:54, Petr Jelinek <petr.jelinek@2ndquadrant.com> wrote:
>
>> But, I still think we need to restart the tracking after new
>> xl_running_xacts. Reason for that is afaics any of the catalog snapshots
>> that we assigned to transactions at the end of SnapBuildCommitTxn might
>> be corrupted otherwise as they were built before we knew one of the
>> supposedly running txes was actually already committed and that
>> transaction might have done catalog changes.
>
> Due to the race where LogStandbySnapshot() collects running-xacts info
> while a concurrent xact commits, such that the xl_xact_commit appears
> before the xl_running_xacts, but the xl_running_xacts still has the
> commited xact listed as running, right? Because we update PGXACT only
> after we write the commit to WAL, so there's a window where an xact is
> committed in WAL but not shown as committed in shmem.
>
Yes that's what the patch at hand tries to fix, but Andres approached it
from too simplistic standpoint as we don't only care about the exported
snapshot but whatever catalog snapshots we made for the transactions we
already track, unless I am missing something.
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, 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
view thread (92+ messages) latest in thread
Message-ID: <6ad87d3c-020b-df2b-5046-65bff666caad@2ndquadrant.com>
Permalink: ../6ad87d3c-020b-df2b-5046-65bff666caad@2ndquadrant.com/
Also on: postgresql.org/message-id/6ad87d3c-020b-df2b-5046-65bff666caad@2ndquadrant.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: petr.jelinek@2ndquadrant.com, craig@2ndquadrant.com, andres@anarazel.de, er@xs4all.nl, robertmhaas@gmail.com
Subject: Re: snapbuild woes
In-Reply-To: <6ad87d3c-020b-df2b-5046-65bff666caad@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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