Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEHus-0000ZI-GA for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Dec 2016 15:44:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEHus-0007jA-1U for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Dec 2016 15:44:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEHur-0007ie-6Y for pgsql-bugs@postgresql.org; Tue, 06 Dec 2016 15:44:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEHum-0004xj-V2 for pgsql-bugs@postgresql.org; Tue, 06 Dec 2016 15:44:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uB6FiHVa026772; Tue, 6 Dec 2016 10:44:18 -0500 From: Tom Lane To: rikard@ngs.hr cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14450: inconsistent results on async slave In-reply-to: <20161206085736.4360.39346@wrigleys.postgresql.org> References: <20161206085736.4360.39346@wrigleys.postgresql.org> Comments: In-reply-to rikard@ngs.hr message dated "Tue, 06 Dec 2016 08:57:36 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26770.1481039057.1@sss.pgh.pa.us> Date: Tue, 06 Dec 2016 10:44:17 -0500 Message-ID: <26771.1481039057@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 rikard@ngs.hr writes: > Is this expected behavior? You haven't provided nearly enough information to let anyone diagnose this with certainty; but if the data is changing under you, then replacing a volatile function with a stable one could certainly cause different results, because the data visibility rules would be different. See https://www.postgresql.org/docs/9.3/static/xfunc-volatility.html particularly the bit about volatile functions using a new snapshot on each call. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs