pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igal @ Lucee.org <igal@lucee.org>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_dump and search_path
Date: Mon, 8 Jul 2019 23:54:25 -0700
Message-ID: <fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org> (raw)
In-Reply-To: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org>
References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org>

On 7/8/2019 11:48 PM, Igal @ Lucee.org wrote:
>
> I have a custom search_path:
>
> # show search_path;
>            search_path
> ----------------------------------
>  "staging, transient, pg_catalog"
> (1 row)
>
> I ran `pg_dump --schema-only` and the only reference in the output to 
> search_path is:
>
>   SELECT pg_catalog.set_config('search_path', '', false);
>
> Then one of my functions which does not reference the full name of a 
> table with its schema fails with "relation [rel-name] does not exist".
>
> Is that a bug?  I have seen some old posts about this issue but am not 
> sure if there is a ticket or why it still is an issue.
>
Looks like this might be by design.  I will follow the links at 
https://www.postgresql.org/message-id/flat/MWHPR14MB160079A6D9DC64A2F60E9004C0D00%40MWHPR14MB1600.na... 
and ask more questions if I have them.

I might need to add the schema name to the table in my function.

Igal







view thread (17+ messages)  latest in thread

Message-ID: <fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org>
Permalink:  ../fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org/
Also on:    postgresql.org/message-id/fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org

 · 

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: igal@lucee.org
  Subject: Re: pg_dump and search_path
  In-Reply-To: <fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org>
  References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> <fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org>

* 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