pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Evgeniy Kozlov <dsuchka@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14972: row duplicate on first SELECT from CTE (by JOIN/FOR UPDATE) from which UPDATE performed recently
Date: Thu, 14 Dec 2017 10:54:19 +0300
Message-ID: <75050b5d-b426-500d-e6bd-d7025a1d018d@gmail.com> (raw)
In-Reply-To: <CAKFQuwb2OAyOsE3m5dZT5DXz-rYF9Jj4wY5juSRHFJGdoNuyzQ@mail.gmail.com>
References: <20171213191216.20144.83388@wrigleys.postgresql.org>
	<CAKFQuwb2OAyOsE3m5dZT5DXz-rYF9Jj4wY5juSRHFJGdoNuyzQ@mail.gmail.com>

2017-12-13 23:14 (+03), David G. Johnston wrote:

> On Wed, Dec 13, 2017 at 12:12 PM, <dsuchka@gmail.com
> <mailto:dsuchka@gmail.com>>wrote:
>
>     The following bug has been logged on the website:
>
>     Bug reference:      14972
>     Logged by:          Evgeniy Kozlov
>     Email address:      dsuchka@gmail.com <mailto:dsuchka@gmail.com>
>     PostgreSQL version: 9.5.5
>     Operating system:   gentoo, debian
>     Description:
>
>     Since ON CONFLICT does not work with partitions, I have designed an
>     aggregation appender by hand using UPDATE (for existed rows) +
>     INSERT (for
>     new ones). Unexpectedly I got a strange result as a count of
>     updated (really
>     joined) rows running that function cuncurrently on 9.5.5 and 9.5.7
>     (9.5.2
>     works correctly).
>     The got value exceeds the expected result by 1
>
>
> ​Can you run this against 9.5.10 and see if it is still a problem? 
> Its seems the last couple of bug fix patches covered something that
> sounds familiar.
>
> David J.
Just tested on 9.5.10 and 9.6.6 — both have the same problem.

Best regards, Evgeniy Kozlov.

view thread (4+ messages)  latest in thread

Message-ID: <75050b5d-b426-500d-e6bd-d7025a1d018d@gmail.com>
Permalink:  ../75050b5d-b426-500d-e6bd-d7025a1d018d@gmail.com/
Also on:    postgresql.org/message-id/75050b5d-b426-500d-e6bd-d7025a1d018d@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dsuchka@gmail.com, david.g.johnston@gmail.com
  Subject: Re: BUG #14972: row duplicate on first SELECT from CTE (by JOIN/FOR UPDATE) from which UPDATE performed recently
  In-Reply-To: <75050b5d-b426-500d-e6bd-d7025a1d018d@gmail.com>
  References: <20171213191216.20144.83388@wrigleys.postgresql.org> <CAKFQuwb2OAyOsE3m5dZT5DXz-rYF9Jj4wY5juSRHFJGdoNuyzQ@mail.gmail.com> <75050b5d-b426-500d-e6bd-d7025a1d018d@gmail.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