Bruce Momjian <br...@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