Re: crosstab documentation should add a note about use in materialized views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: crosstab documentation should add a note about use in materialized views
Дата
Msg-id 3558401.1669152952@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: crosstab documentation should add a note about use in materialized views  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: crosstab documentation should add a note about use in materialized views
Следующее
От: Kirk Wolak
Дата:
Сообщение: Re: nextval parameter is not clear