Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO66w-0000Kl-Ig for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 13:55:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WO66v-0006VO-Va for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 13:55:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO66v-0006VH-8q for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 13:55:49 +0000 Received: from mail-la0-f45.google.com ([209.85.215.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO66t-0001HG-4W for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 13:55:48 +0000 Received: by mail-la0-f45.google.com with SMTP id hr17so715439lab.18 for ; Thu, 13 Mar 2014 06:55:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Ez5gga90hfmGVz53YuC4OWpNvNmc5M2Cj/jyk5Kx2z8=; b=e9yevqscY3a8nWq9ZBkD5hri6j0lwEE+rurcA9EdZ1kt4gDBh4Z6LS4SJxXF85o1VS LZH6/EeBw4n+GRyYMdGzwFpO5YOXLmwIurZkJFA4nOwlnw0fH15pCxKD+XahUKot9X/Z ikr4+umylBOjuF9076WsXexl98fRnGGuG+bUR1mowVGYfxiT7wq2/MoB7Z6udu4ra0/T XOecSzpAHYOOwddiuKO8XwVfTTu8F15JFCi1ibj/CPhrHb/uoGcKEu8RHFtuNYzGJIC4 tcRsEwxvpTyrrEk6Hxk9O93aiB33VtUz3J8yEw3E7ug7MzcBk5vaGltzTB3rckOdUYIy kFcw== X-Gm-Message-State: ALoCoQm6U/hQHClVCuUpLOnSPm1gK8XOvkcFB8uQKdjKajt+Vs6JneoIGAIXjp1+ghk0khKHJsIz X-Received: by 10.152.43.47 with SMTP id t15mr1364592lal.38.1394718945704; Thu, 13 Mar 2014 06:55:45 -0700 (PDT) Received: from Markos-MacBook-Pro.local ([46.246.117.202]) by mx.google.com with ESMTPSA id zf7sm2187247lab.7.2014.03.13.06.55.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Mar 2014 06:55:44 -0700 (PDT) Message-ID: <5321B8E0.9040601@joh.to> Date: Thu, 13 Mar 2014 14:55:44 +0100 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Heikki Linnakangas CC: pgsql-bugs@postgresql.org Subject: Re: BUG #9557: Row not visible after receiving notification References: <20140313093922.335.80556@wrigleys.postgresql.org> <5321AAAF.4020207@joh.to> <5321B217.3080905@joh.to> <5321B67A.1060507@vmware.com> In-Reply-To: <5321B67A.1060507@vmware.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 3/13/14 2:45 PM, Heikki Linnakangas wrote: > On 03/13/2014 03:26 PM, Marko Tiikkaja wrote: >> On 3/13/14 1:55 PM, I wrote: >>> This would explain it, as I don't see the notification code checking >>> whether the transaction is still in PGPROC, just calling >>> TransactionIdDidCommit(). >> >> And as predicted, adding a call to TransactionIdIsInProgress() in >> asyncQueueProcessPageEntries makes the problem go away. > > Good catch! Want to write that into a patch? I can do it if it helps, but I figured that it's a one-line change, perhaps four with a nice comment.. Regards, Marko Tiikkaja -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs