Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXqbx-0005OH-In for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 14:05:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXqbx-0003FT-5i for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 14:05:29 +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 1bXqbJ-0002TG-5y for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 14:04:49 +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 1bXqbG-0004zN-In for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 14:04:48 +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 u7BE4iFt029559; Thu, 11 Aug 2016 10:04:44 -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 10:04:44 -0400 Message-ID: <29558.1470924284@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. Man, that looks familiar. Didn't we fix a similar oversight somewhere else, not long ago? Wonder if there are more. But a quick grep for if_not_exists doesn't find anything, so I'm not quite sure what I'm half-remembering ... 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