Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
Date
Msg-id 11850.1531927071@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #15282: Materialized view with transitive TYPE dependencyfails refresh using pg_restore and psql  (Keith Hickey <kwhickey@gmail.com>)
Responses Re: BUG #15282: Materialized view with transitive TYPE dependencyfails refresh using pg_restore and psql  (Keith Hickey <kwhickey@gmail.com>)
List pgsql-bugs
Keith Hickey <kwhickey@gmail.com> writes:
> Ok, that worked. Such a simple change.
> i.e. in the function definition, changed the return statement from
> return result::customer_tier;
> to
> return result::public.customer_tier;

Check.

> However --
> When running the restore as user "root", with the default search path
> (which was the case): "$user", public

pg_restore doesn't use the default search path anymore.

            regards, tom lane


pgsql-bugs by date:

Previous
From: Keith Hickey
Date:
Subject: Re: BUG #15282: Materialized view with transitive TYPE dependencyfails refresh using pg_restore and psql
Next
From: Keith Hickey
Date:
Subject: Re: BUG #15282: Materialized view with transitive TYPE dependencyfails refresh using pg_restore and psql