Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXpwa-0002J7-T9 for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 13:22:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXpwa-0005eZ-Fl for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 13:22:44 +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 1bXpvw-0004wM-L9 for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 13:22:04 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bXpvp-0004En-R8 for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 13:22:04 +0000 Received: from localhost ([127.0.0.1]:26348 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bXpvn-000CyV-7v; Thu, 11 Aug 2016 13:21:55 +0000 From: Andrew Gierth To: Michael Paquier Cc: "Saxena\, Shivam" , "pgsql-bugs\@postgresql.org" , DB Development DBAs , "Lee\, Ming" Subject: Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6 In-Reply-To: (Michael Paquier's message of "Thu, 11 Aug 2016 22:09:01 +0900") Message-ID: <87mvkjphoz.fsf@news-spur.riddles.org.uk> References: <97218716-480B-4527-B5CD-D08D798A0C7B@dresources.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Thu, 11 Aug 2016 14:21:55 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -2.4 (--) 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 >>>>> "Michael" == Michael Paquier writes: >> I'll produce a patch in the worst case by tomorrow morning my time. Michael> And attached is the patch. I arrived at the conclusion that Michael> the assertion being broken here just needs to be relaxed a bit Michael> so as it understands that this code path can be taken by a Michael> matview WITH NO DATA. I have bundled a regression test as Michael> well. This should be backpatched down to 9.3. Might it make sense in the regression test to check that ROW_COUNT ends up correctly set? -- Andrew (irc:RhodiumToad) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs