Re: crosstab documentation should add a note about use in materialized views - Mailing list pgsql-docs

From Tom Lane
Subject Re: crosstab documentation should add a note about use in materialized views
Date
Msg-id 3558401.1669152952@sss.pgh.pa.us
Whole thread Raw
In response to Re: crosstab documentation should add a note about use in materialized views  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
Bruce Momjian <bruce@momjian.us> writes:
>> 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?

It doesn't sound like this is in any way unique to crosstab.
Any underqualified reference to a user-defined object can cause
problems during dump/restore, because of the restricted search_path
we use during restore.

            regards, tom lane



pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: crosstab documentation should add a note about use in materialized views
Next
From: Kirk Wolak
Date:
Subject: Re: nextval parameter is not clear