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 1hkqhH-0008Hz-MZ for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 14:02:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkqhE-0001Zp-Pw for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 14:02:16 +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 1hkqhC-0001YL-Np for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 14:02:16 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkqh8-0007Kc-6N for pgsql-general@postgresql.org; Tue, 09 Jul 2019 14:02:14 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6D62F205B8; Tue, 9 Jul 2019 10:02:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 09 Jul 2019 10:02:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=e Wiw5FVg/13ijgYifwMW8mCKd3zT4a3O8va/7RCD8bk=; b=CzBVB6lrs+V3eTnSV tfO5fnFtMe1vM9C0JvxWFuQG7xsWFXlydoJmiBsp9anYhWlNgFmfBwJRVMZy3FLd BTr8RGSJizpEU6gp/GQ1u+SfrM9ZLVE4CLoYQRAPtF5dTsLqUBz1UHEQ1VwjJpzx h56t5tCp5fOTR12ZhGnd0UVjPrExoyrpv88OKq5fAs6tExSvjSBKgsPr5BK5zCY2 XgHZGlMpSq7sk4Z+nXPkCyEFdblscqHDoikjWiclNhHT4aJ2fTESedBhrgz/LJFZ 0l8DPHgujjcTqp6DMfft/9DzpQyRAyJmj01qt76arGCI5C3a47nx+IhbrUH3ebFH dY+4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=eWiw5FVg/13ijgYifwMW8mCKd3zT4a3O8va/7RCD8 bk=; b=Axdj9PBUGpU0JSq/xc4eOZRvrGw1wc+a+ByasPy9cH3klp5i03Is/hJXg uQcvSjBOEfYIuQOhZJlAdAiDIrQW99oGyqHvxqAndhbE6X7agQFdRit3JnZI+G8n axzG91fu3eGb/3wkxLLQ0TtxRd1IzfRoUTeItD5vo3sx0jvjP5x/WCZtH2JnklZR 5JK1rMH5yEdUCiqJFmlC3SC9edocDDn4h/3fVitP9pcmW/0wx6UkkjtmwYdy/5EJ dS8LYzUYBSOok7Qs0mMoOEebCl03ZpZnZeIDrXutdC/VR8YIpxU+phEVFXhQFpBe BZugR8MZvAjgHEvLqNK5EBf7ii/kw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrgedvgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehluhgtvggvrdhorhhgnecukfhppeejuddrvdduvddrudehtddr vddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrg hklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 1812E80065; Tue, 9 Jul 2019 10:02:05 -0400 (EDT) Subject: Re: pg_dump and search_path To: "Igal @ Lucee.org" , pgsql-general References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> From: Adrian Klaver Message-ID: <94e28e8c-e5cf-f0b5-a148-43452446d9ec@aklaver.com> Date: Tue, 9 Jul 2019 07:02:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/8/19 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". Where is this failing? Do you have the search_path set in the config for the server you are dumping to? > > 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. > > Thanks, > > Igal Sapir > Lucee Core Developer > Lucee.org > -- Adrian Klaver adrian.klaver@aklaver.com