Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkk1K-0004vu-89 for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 06:54:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkk1J-0006A5-1w for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 06:54:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkk1I-00069x-Og for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 06:54:32 +0000 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkk1G-00030b-6Y for pgsql-general@postgresql.org; Tue, 09 Jul 2019 06:54:32 +0000 Received: by mail-oi1-x22f.google.com with SMTP id m202so14592828oig.6 for ; Mon, 08 Jul 2019 23:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee.org; s=google; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=egsLfQjp9o0wgb1/HUVYbTG9eNP1NNbSRnN5a37VVzk=; b=Dmn5ygb2OQbhZ7WKBKFi3sYM3riFFYy6Pd/hMp7N44Vc8sgloipewzly/dG0+WPj85 rGjHesYlosoRzuw7Os7ul/OR91MjPxqYVUDNYqNLvJp2GEHcC5LxoJEHiqWC1VfsP56s CmiBCBrX9o5sZ01AEF1HCaX23JRlTrHB4thcdkPDh8dISm8oVS1OAdm05rZorXxT8ung 3V0XAAPdvp3FPREFIVdU/ZnwaQwhPC539Az8vN1GmHJYwS4L9iQlwWuvlCpmSa2Vlwpn ezaXJvoxA31ZC8nNE6sUwR0DEsCIuENv1ekL9T0ogx6KeXv1bLznhn3Lr7lf8tZOodMo WLQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=egsLfQjp9o0wgb1/HUVYbTG9eNP1NNbSRnN5a37VVzk=; b=Q2HTLXRHphab+nlMTUINA4igtdhxUmO04w6xbUytt8TypPpdnYZK/HYFozkBYi9EkD TXSRGHRafS97fy7clNzne56JTuUw3e1X84u4N7Ig/a7z8LfIIjy+UoJ+FHxslA+IsmRR O0mL260uRFjWoGGPKpYmxQiikFaWIjrj62mw7PKdDTFS8Xd/btqwhfVwIYqj1mEudExS 1MB8GKOOwQWNf6V377z5vr7RzSXyNKiVnZt6RTO24p8eEkty6xj22YFlqBCFQ6yDd/Dg dYt/vS3G5WhQZDOuk0fHyUnz2OP6yK9cjLDuhmxQeW9zEg57xxd/SYz/hTSl3TQOSzNX /sbA== X-Gm-Message-State: APjAAAVgX//MJ1p1H49YtYgZj/Ftadw7kQQtuPMkarzwVasN1XzCcJon 01oq0EDmMgi3DY9LbnZ8CQSuJrd9Kdh/JQ== X-Google-Smtp-Source: APXvYqzVmwmhFZbEyM2+IJAORSVfGRw152sZVI3GC4NwiQIR0iOPgaVBHayXZxGVn4bY5F6eUs3XSw== X-Received: by 2002:a05:6808:904:: with SMTP id w4mr11841585oih.9.1562655267049; Mon, 08 Jul 2019 23:54:27 -0700 (PDT) Received: from ?IPv6:2600:1700:4000:8120:e4a2:d970:b88f:f5fa? ([2600:1700:4000:8120:e4a2:d970:b88f:f5fa]) by smtp.googlemail.com with ESMTPSA id 59sm27949otr.27.2019.07.08.23.54.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 23:54:26 -0700 (PDT) Subject: Re: pg_dump and search_path From: "Igal @ Lucee.org" To: pgsql-general References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> Message-ID: Date: Mon, 8 Jul 2019 23:54:25 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.namprd14.prod.outlook.com and ask more questions if I have them. I might need to add the schema name to the table in my function. Igal