Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWOyO-0000WY-1h for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 13:50:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWOyN-0001DO-Cv for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 13:50:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWOxk-0000MK-Go for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 13:49:44 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWOxh-0006YN-KO for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 13:49:43 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1aWOxg-0001IV-0o; Thu, 18 Feb 2016 08:49:40 -0500 Date: Thu, 18 Feb 2016 08:49:40 -0500 From: Bruce Momjian To: Miha Vrhovnik Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13963: pg_clusterupgrade and materialized view Message-ID: <20160218134940.GF26716@momjian.us> References: <20160216091311.2603.27097@wrigleys.postgresql.org> <20160218025253.GB26716@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 On Thu, Feb 18, 2016 at 07:10:55AM +0000, Miha Vrhovnik wrote: > On 2016-02-18 03:52, Bruce Momjian wrote: > >On Tue, Feb 16, 2016 at 09:13:11AM +0000, miha.vrhovnik@cordia.si > >wrote: > >>The following bug has been logged on the website: > >> > >>Bug reference: 13963 > >>Logged by: Miha > >>Email address: miha.vrhovnik@cordia.si > >>PostgreSQL version: 9.5.1 > >>Operating system: Ubuntu > >>Description: > >> > >>Hey, > >> > >>I've just made a pg_clusterupgrade where the one database has a > >>materialized > >>view which is on another server, so the pg_fdw is used.. and > >>this seems that > >>was not updated during the pg_clusterupgrade > >> > >>It would be at least nice if pg_clusterupgrade would print out a > >>notice if > >>it cannot refresh the view. > >> > >>I haven't tested but maybe the problem is the same if one doesn't use > >>materialized view via the pg_fdw. > > > >Why do you think an upgrade should refresh a materialzied view? > Because after the upgrade the view was empty. I have a cron job > which calls refresh materialized view with concurently keyword and > the error returned was cannot refresh empty view concurrently. Oh, that is odd. So you had to repopulate the view rather than refreshing it? I am guessing that pg_dump is causing this, though there is no mention in the docs about it. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs