Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoHTq-0000cF-FV for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Dec 2013 18:47:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoHTp-00059n-Vl for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Dec 2013 18:47:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo6dG-0007q0-Di for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 07:12:26 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo6d9-00088Y-0V for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 07:12:26 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo6d4-0004N6-O4 for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 07:12:18 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Vo6cz-0004Pf-DN for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 07:12:09 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8655: pg_restore problems with materialized views To: pgsql-bugs@postgresql.org From: shaunc@factfiber.com Message-Id: Date: Wed, 04 Dec 2013 07:12:09 +0000 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 The following bug has been logged on the website: Bug reference: 8655 Logged by: Shaun Cutts Email address: shaunc@factfiber.com PostgreSQL version: 9.3.1 Operating system: mac os 10.8.5 Description: I have a large database (100s of millions of rows) in which there are many "chained" materialized views -- that is: some depend on others, etc... When I back up and then restore, only the "first layer" of views are refreshed. I can then go back and manually restore missing views with "-t" -- though if I do too many at once the same thing happens. I have tried to generate a small test case, but with no luck. I suspect that pg_restore needs to issue "refresh" before it creates successive views, and in "small" cases it gets that right -- but there is some arbitrariness in the order that trips it up in sufficiently complex cases. I also have indexes defined on the materialized views. I don't know if that matters -- an extra sequencing problem for restore though. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs