pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: stan <stanb@panix.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: A very puzzling backup/restore problem
Date: Thu, 24 Oct 2019 18:11:40 -0400
Message-ID: <12087.1571955100@sss.pgh.pa.us> (raw)
In-Reply-To: <83c9bcf7-fede-39be-c2ed-bffbd4da5082@aklaver.com>
References: <20191024105227.GA13265@panix.com>
	<4fc52554-6dad-b833-c800-7f91172c7cf1@aklaver.com>
	<20191024143253.GA16590@panix.com>
	<42316356-9409-3908-5a13-9f20c1f5b04f@aklaver.com>
	<20191024215806.GA7146@panix.com>
	<83c9bcf7-fede-39be-c2ed-bffbd4da5082@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 10/24/19 2:58 PM, stan wrote:
>> So, it appears that this means that the function cannot be found, even if it is in the new
>> (default) schema.

> The original error was not about finding the function it was about not 
> finding the table in the function:

> psql:task_instance.dump:55: ERROR:  relation "permitted_work" does not exist
> LINE 3:                 permitted_work
>                          ^

> You need to schema qualify the table name inside  the function.

Or attach a SET clause to the function, so that it executes with a
known search_path regardless of the session's prevailing path.

			regards, tom lane





view thread (8+ messages)

Message-ID: <12087.1571955100@sss.pgh.pa.us>
Permalink:  ../12087.1571955100@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12087.1571955100@sss.pgh.pa.us

 · 

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 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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, stanb@panix.com
  Subject: Re: A very puzzling backup/restore problem
  In-Reply-To: <12087.1571955100@sss.pgh.pa.us>
  References: <20191024105227.GA13265@panix.com> <4fc52554-6dad-b833-c800-7f91172c7cf1@aklaver.com> <20191024143253.GA16590@panix.com> <42316356-9409-3908-5a13-9f20c1f5b04f@aklaver.com> <20191024215806.GA7146@panix.com> <83c9bcf7-fede-39be-c2ed-bffbd4da5082@aklaver.com> <12087.1571955100@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