Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Keith Hickey <kwhickey(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
Date: 2018-07-18 15:17:51
Message-ID: 11850.1531927071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Keith Hickey <kwhickey(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Keith Hickey 2018-07-18 15:35:38 Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
Previous Message Keith Hickey 2018-07-18 14:37:49 Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql