public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Wells Oliver <[email protected]>
Cc: pgsql-admin <[email protected]>
Subject: Re: pg_restore and materialized view deps
Date: Fri, 06 Sep 2024 22:12:34 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAOC+FBWOTSi3DXHBjWdBrVpYOKTrf+aQ5N32BMDwJM3uKgfGXw@mail.gmail.com>
References: <CAOC+FBUas6PnmOpo1uUXwyV5a_==m6cPx-iVyDL3xDKeiqc1Kg@mail.gmail.com>
<[email protected]>
<CAOC+FBWOTSi3DXHBjWdBrVpYOKTrf+aQ5N32BMDwJM3uKgfGXw@mail.gmail.com>
Wells Oliver <[email protected]> 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
view thread (4+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pg_restore and materialized view deps
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox