From: Tom Lane <tgl@sss.pgh.pa.us>
To: Keith Hickey <kwhickey@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
Date: Wed, 18 Jul 2018 11:17:51 -0400
Message-ID: <11850.1531927071@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAvgwL8WsLVgQndfcWehZyG8KUva_xfMGih2NaGDWd6Qh4OWhw@mail.gmail.com>
References: <153184074037.1405.15097715315257989847@wrigleys.postgresql.org>
<17166.1531847498@sss.pgh.pa.us>
<CAAvgwL8WsLVgQndfcWehZyG8KUva_xfMGih2NaGDWd6Qh4OWhw@mail.gmail.com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, kwhickey@gmail.com
Subject: Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
In-Reply-To: <11850.1531927071@sss.pgh.pa.us>
References: <153184074037.1405.15097715315257989847@wrigleys.postgresql.org> <17166.1531847498@sss.pgh.pa.us> <CAAvgwL8WsLVgQndfcWehZyG8KUva_xfMGih2NaGDWd6Qh4OWhw@mail.gmail.com> <11850.1531927071@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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