Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXrq7-0001ip-1U for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 15:24:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXrq6-0007u6-KY for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 15:24:10 +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 1bXrq6-0007tv-8Q for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 15:24:10 +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 1bXrq3-0006MQ-5G for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 15:24:09 +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 u7BFO4l8012512; Thu, 11 Aug 2016 11:24:04 -0400 From: Tom Lane 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: References: <97218716-480B-4527-B5CD-D08D798A0C7B@dresources.com> Comments: In-reply-to Michael Paquier message dated "Thu, 11 Aug 2016 22:09:01 +0900" Date: Thu, 11 Aug 2016 11:24:04 -0400 Message-ID: <12511.1470929044@sss.pgh.pa.us> 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 Paquier writes: > And attached is the patch. I arrived at the conclusion that the > assertion being broken here just needs to be relaxed a bit so as it > understands that this code path can be taken by a matview WITH NO > DATA. I have bundled a regression test as well. This should be > backpatched down to 9.3. Pushed. The Assert was still a bit too strong: as you had it, it still crashed on CREATE TABLE AS ... WITH NO DATA. 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