Re: pg_restore and materialized view deps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_restore and materialized view deps
Date: 2024-09-07 02:12:34
Message-ID: 2410482.1725675154@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Wells Oliver <wells(dot)oliver(at)gmail(dot)com> writes:
> Ah, you know, a little deeper: it's an issue with a mat view unable to
> refresh because it uses a function, and within that function, there is a
> call to a mat view not yet materialized.

Oh yes, pg_dump can't really see dependencies inside function bodies.

... Unless ... can you write the function as a new-style SQL
function (BEGIN ATOMIC instead of a string literal)?
Then I think it might work.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message lennam 2024-09-08 22:01:33 RE: Incremental load from SQL server DB to postgressql
Previous Message Wells Oliver 2024-09-07 01:41:22 Re: pg_restore and materialized view deps