Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smkMl-007yAr-24 for pgsql-admin@arkaria.postgresql.org; Sat, 07 Sep 2024 01:35:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1smkMj-007my6-J6 for pgsql-admin@arkaria.postgresql.org; Sat, 07 Sep 2024 01:35:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smkK1-007fYl-JU for pgsql-admin@lists.postgresql.org; Sat, 07 Sep 2024 01:33:05 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smkJz-000WeQ-Ee for pgsql-admin@postgresql.org; Sat, 07 Sep 2024 01:33:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4871X1k12406328; Fri, 6 Sep 2024 21:33:01 -0400 From: Tom Lane To: Wells Oliver cc: pgsql-admin Subject: Re: pg_restore and materialized view deps In-reply-to: References: Comments: In-reply-to Wells Oliver message dated "Fri, 06 Sep 2024 17:41:52 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2406326.1725672781.1@sss.pgh.pa.us> Date: Fri, 06 Sep 2024 21:33:01 -0400 Message-ID: <2406327.1725672781@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wells Oliver writes: > Not the end of the world but I notice when running pg_restore that I > encounter a few errors where materialized views cannot be refreshed because > they query other materialized views not yet refreshed. Oh? There are dependencies that are supposed to prevent that. Can you provide a self-contained example of a schema where that doesn't work? regards, tom lane