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 1hkqqx-0000LF-Jo for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 14:12:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkqqw-0001Ln-G4 for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 14:12:18 +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 1hkqqw-0001Hy-48 for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 14:12:18 +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 1hkqqu-0007Qq-4s for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 14:12:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id ED92C20F20; Tue, 9 Jul 2019 10:12:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 09 Jul 2019 10:12:14 -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=d zo7VWtKrYrpfF4oFg0lDcXeI4Jgvn800n/oQqksszQ=; b=Co9IfKlHW0p6TnFdA Neuqwv+RRRiFlzw5mBFVyIWzavWjsF0U+Jx3wR1ql9eDJY/KHf6IqNGc8n5Gf6Zw 9VRXMtrXIdxVHqqtoQBbNB9zqnrfaZu8U+3wXDfX0tcGqEPZNpGjIzPLpSZ9jv2x ljT7CUkCgypFrX67/qX0nr5SZ2uGXhziWadEPW1v3IdaB34zt+vxhtKKNwtSAxlf LI+9WIUejar/aETpYC9F1px1qsMB53tPbT04G+BJBE3yqc/z4RzwaNGq8x/eBGIF tjoZ9+pEUFMiOO9pwE2O7WV7NR6NVbIIFdQFyK6TkPyDsj1mMhoHkOY4R47wc3KI +XnSw== 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=dzo7VWtKrYrpfF4oFg0lDcXeI4Jgvn800n/oQqkss zQ=; b=YY32GPJZ2qrFTwjQ/7CpX31THDA4C7o+yWQlKDI+sYioDGnz3b1Dsz6yr qN20BS/jw2jakZy3ZjzjOCDt5VjEHPNlQGuQCU9Lh9ovmIJMhIYwSqNKlLVibQKP eFgQg36XNMETlKt6KZcb/u1idsHuyndxT6AfziKzvfh6Gyp02cIjW7WOm2c7VVmS PeF2m0/TDMygjMl6NiCM19AUf4HLqE5alwkVOdcp0VSFoefQ2wGszcano7k6b/W7 1m2lg8cXwsq1F5MRs8XyLL8Kj0wkU4b66iVDqUyktoH7Y28dvYsw0ToMepg7b262 ItVqhPzx/CzaVnNrDqmTaCLdba6DA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrgedvgdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id EA98B80060; Tue, 9 Jul 2019 10:12:13 -0400 (EDT) Subject: Re: pg_dump and search_path To: Ron , pgsql-general@lists.postgresql.org References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> <6e3e7900f9d470c6927112818c0aec59e1f91ac8.camel@cybertec.at> <64b7168a-7fb4-ddb0-f7aa-298638fb64af@gmail.com> From: Adrian Klaver Message-ID: <49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com> Date: Tue, 9 Jul 2019 07:12:13 -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: <64b7168a-7fb4-ddb0-f7aa-298638fb64af@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/9/19 6:28 AM, Ron wrote: > > Then should search_path be set at the end of pg_restore? > 1) That would be to late for anything happening in the restore. 2) The: SELECT pg_catalog.set_config('search_path', '', false); only applies to the restore session. After the restore the search_path will return to whatever has been configured. -- Adrian Klaver adrian.klaver@aklaver.com