Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl1qo-0004lx-Df for pgsql-hackers@arkaria.postgresql.org; Thu, 15 May 2014 20:01:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wl1qn-00088N-Se for pgsql-hackers@arkaria.postgresql.org; Thu, 15 May 2014 20:01:57 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl1qm-00087m-NB for pgsql-hackers@postgreSQL.org; Thu, 15 May 2014 20:01:56 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl1qj-000815-Qd for pgsql-hackers@postgreSQL.org; Thu, 15 May 2014 20:01:56 +0000 Received: from anarazel.de (p5DDC5E8D.dip0.t-ipconnect.de [93.220.94.141]) by mrelayeu.kundenserver.de (node=mreue001) with ESMTP (Nemesis) id 0Lo5wv-1XHrYw0hj7-00gHIU; Thu, 15 May 2014 22:01:47 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 54D0E10216D; Thu, 15 May 2014 22:01:46 +0200 (CEST) Date: Thu, 15 May 2014 22:01:46 +0200 From: Andres Freund To: Heikki Linnakangas Cc: PostgreSQL-development Subject: Re: Logical replication woes Message-ID: <20140515200146.GA16014@awork2.anarazel.de> References: <5374F1FF.9000902@vmware.com> <5374F44B.1060003@vmware.com> <20140515174657.GI23662@alap3.anarazel.de> <537515ED.5060106@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <537515ED.5060106@vmware.com> X-Provags-ID: V02:K0:i3k5K2yYcQpfcpY6XFhBjHupfpHhDSw/PonJ7Ogs3QV JzGMf3T01CvnHfoFCiUPbyK7NL+SrFqzDn/zQt22l11A/vjJdh ZnvAbyWL4SsCry9i4LIgc3KmKTEd7qTs73FZuj3W3iV9HuarHu ffBIOmpflGF+OHBojNDrgNgg4rXJzrwPF3uaTnUOWeuVBMtEko AzvcR8cFlL+2qnQoCpyy9rDbEmrFKYEmtUg4556r4Q3fxWqVnl iB5sahJhug14OiaAg6JFci5XcWXmqp0YhuPAOWoVRkr95Fzm4o muvke3S9KgwvxqfKdTNpITZZUps3U7ZXmpjGKCs3KgnVuar/KR zotCltd5yOmGwdh05lEJl7lsIdYo+FobXftZ3jIx5 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2014-05-15 22:30:53 +0300, Heikki Linnakangas wrote: > On 05/15/2014 08:46 PM, Andres Freund wrote: > >On 2014-05-15 20:07:23 +0300, Heikki Linnakangas wrote: > >How very wierd. The reason for this is that > >RecordTransactionCommitPrepared() forgets to fill a couple of fields in > >xl_xact_commit. Any reason dbId/tsId aren't filled? They aren't strictly > >needed because afaics they're only looked at for relcache invalidations > >which prepared xacts don't support, but still? > > Seems like an oversight in commit dd428c79, which added the fields to > xl_xact_commit. They are needed. A prepared xact can indeed cause relcache > invalidations, and removal of the init file. For example: Hm, so that part has to be backpatched to 9.0. Ick, I wonder if that's been hit in production. Seems like it could cause pretty random looking errors. It's easy enough to cause errors like: ERROR: could not open file "base/12753/12613": No such file or directory I guess not many people will do relevant stuff in prepared xacts tho. Greetings, Andres Freund -- Andres Freund 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