pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedcrosstab documentation should add a note about use in materialized views
3+ messages / 3 participants
[nested] [flat]
* crosstab documentation should add a note about use in materialized views
@ 2022-10-18 08:30 PG Doc comments form <noreply@postgresql.org>
2022-11-22 21:28 ` Re: crosstab documentation should add a note about use in materialized views Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 3+ messages in thread
From: PG Doc comments form @ 2022-10-18 08:30 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: robrwo@gmail.com
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: crosstab documentation should add a note about use in materialized views
2022-10-18 08:30 crosstab documentation should add a note about use in materialized views PG Doc comments form <noreply@postgresql.org>
@ 2022-11-22 21:28 ` Bruce Momjian <bruce@momjian.us>
2022-11-22 21:35 ` Re: crosstab documentation should add a note about use in materialized views Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Momjian @ 2022-11-22 21:28 UTC (permalink / raw)
To: robrwo@gmail.com; pgsql-docs@lists.postgresql.org
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 <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: crosstab documentation should add a note about use in materialized views
2022-10-18 08:30 crosstab documentation should add a note about use in materialized views PG Doc comments form <noreply@postgresql.org>
2022-11-22 21:28 ` Re: crosstab documentation should add a note about use in materialized views Bruce Momjian <bruce@momjian.us>
@ 2022-11-22 21:35 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2022-11-22 21:35 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: robrwo@gmail.com; pgsql-docs@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-11-22 21:35 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 08:30 crosstab documentation should add a note about use in materialized views PG Doc comments form <noreply@postgresql.org>
2022-11-22 21:28 ` Bruce Momjian <bruce@momjian.us>
2022-11-22 21:35 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox