Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oxarQ-0006EY-Kh for pgsql-docs@arkaria.postgresql.org; Tue, 22 Nov 2022 21:31:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oxarP-00082F-92 for pgsql-docs@arkaria.postgresql.org; Tue, 22 Nov 2022 21:31:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oxaoQ-0003s3-3F for pgsql-docs@lists.postgresql.org; Tue, 22 Nov 2022 21:28:14 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oxaoN-00057d-4U for pgsql-docs@lists.postgresql.org; Tue, 22 Nov 2022 21:28:13 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oxaoM-006MB9-1y; Tue, 22 Nov 2022 16:28:10 -0500 Date: Tue, 22 Nov 2022 16:28:10 -0500 From: Bruce Momjian To: robrwo@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: crosstab documentation should add a note about use in materialized views Message-ID: References: <166608181322.2042183.16156070469788658076@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166608181322.2042183.16156070469788658076@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Oct 18, 2022 at 08:30:13AM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/15/tablefunc.html > Description: > > When using a crosstab in a materialized view, if the SQL is not qualified > with a schema, that restoring a database from a dump may fail. See the > discussion in > https://www.postgresql.org/message-id/16202-b6b345c9d2819409%40postgresql.org I am trying to understand the scope of this breakage. I think it is because crosstab specifies queries as strings, and a materialized view has to run the query during restore to populate the materialized view. Is this the only combination of pg_dump restore breakage? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson