Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: "Saxena, Shivam" <shsaxena(at)teamdrg(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>, DB Development DBAs <DBDevelopmentDBAs(at)teamdrg(dot)com>, "Lee, Ming" <milee(at)teamdrg(dot)com>
Subject: Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6
Date: 2016-08-11 14:04:44
Message-ID: 29558.1470924284@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Paquier <michael(dot)paquier(at)gmail(dot)com> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-08-11 15:24:04 Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6
Previous Message Michael Paquier 2016-08-11 13:33:02 Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6