Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQtMZ-0005QU-4x for pgsql-general@arkaria.postgresql.org; Mon, 29 Mar 2021 14:59:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lQtMY-000393-3s for pgsql-general@arkaria.postgresql.org; Mon, 29 Mar 2021 14:59:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQtMW-00038v-L6 for pgsql-general@lists.postgresql.org; Mon, 29 Mar 2021 14:59:29 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQtMS-0003Wf-CH for pgsql-general@lists.postgresql.org; Mon, 29 Mar 2021 14:59:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 87BF45C012E; Mon, 29 Mar 2021 10:59:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 29 Mar 2021 10:59:12 -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=fm2; bh=e QupdzwawvUcS5IZKJ483hmqX4upBt1TTKi587oGags=; b=s9Jcy5BtCQ3VIUhPg LMyCeYLD7ySCEQwVg1zHt3rBS/aXdGaRd6rTTa6IXdKp1F7j4fXtLBeLsSW7u7hH vzJT2kQi108FSmHenDnISsTzZe6TQ9hW6pUfHDC9RRxu51Z8GcA8YaT2XBsr891+ kwrly66XwLgijxFXbfbex5fgWAP4M+uebVgsurqzFtX+zZzVJ/Dtxnc4rRZqnTfi /RLKtqVfoh6JO/2n+pXYD8xgVKKg6QgVVOJIJn1xrvAup+whXcsrm+m8PwiKD0De nBG0/MufZ6ndgXKfahmvOGGgXVs9ofeevmBJo/gMGnC7DOaK1KMIs9LnTqiZ+mKF xWnhw== 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=fm2; bh=eQupdzwawvUcS5IZKJ483hmqX4upBt1TTKi587oGa gs=; b=DLyNaTFp59VFX9p6E1cLumf+md67CVVDPYoTN2fkT154/VU02k65r0g+y 5ViW/9IlIL2BkrIfTIV2e0nhiglmPJM2m7wQzRqGmXliL7ne4QM4/9teZwPhAO6n cVHqIJ0QQE0wdyZI6gyLsCja9PPTHHWBkWY+Cw81AEk9Cs4JKNKFloxX3v0bBdse lBvP47D1FweGRMtnFp8HHw0DOa4DT8mFBiPSgFiypKjrwYQAyuk4+3L2rTVn89HA 7ZtT6I6dQ4m9AQ4RXPohsLudc4MezNnAQlmBBTBNarPGu7Zw9eOgxowlbz6nrZvx htsp2v3z/taavkuJ5lvrxpBRl8Pag== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehkedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeejheefheetffeuudeltddtgfdvtdeludeihefggeej keetgfeiheeihedutdehleenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppe eljedruddufedrvddujedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (97-113-217-27.tukw.qwest.net [97.113.217.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 05CB824005D; Mon, 29 Mar 2021 10:59:11 -0400 (EDT) Subject: Re: search_path in pg_dump output. To: NEERAJ BANSAL , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <72a0339c-a4aa-1be0-84fc-53566b5761ec@aklaver.com> Date: Mon, 29 Mar 2021 07:59:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/28/21 11:00 PM, NEERAJ BANSAL wrote: > Hi, > > we are using pg_dump output to compare the schema consistency. But after > upgrade to postgres 11.5 we are seeing different behavior of pg_dump > intermittently.  As per the > https://github.com/postgres/postgres/commit/582edc369cdbd348d68441fc50fa26a84afd0c1a > > pg_dump should reset the schema path to empty and generate fully > qualified table names which is not happening in intermittent case.  Same > can be seen on multiple different servers and many users are impacted > due to this. Please help me to understand this behavior difference. > Also, If possible please let me know if it is bug or some configuration > issue. First, the current version of 11 is 11.11. In a quick search of the release notes from 11.6 --> 11.11 I don't see anything obviously on point, still it would worth it to try the latest version. Second, where is the Postgres code/package coming from? > > > we have default search_path value in postgresql.conf file. > issue appear 1/5 > *Command used to dump schema:* > pg_dump.exe --file=D:\ schmdmp_tmp --no-owner --no-tablespaces > --schema=hpdpidb_app --schema-only --password --username=xyz --port=xxxx > --host=localhost db_xyz > > *In normal cases:* > > -- Dumped from database version 11.5 > > -- Dumped by pg_dump version 11.5 > > SET statement_timeout = 0; > > SET lock_timeout = 0; > > SET idle_in_transaction_session_timeout = 0; > > SET client_encoding = 'UTF8'; > > SET standard_conforming_strings = on; > > SELECT pg_catalog.set_config('search_path', '', false); > > > CREATE VIEW hpdpidb_app.dp_cartridges AS > > SELECT crt.uuid > >    FROM hpdpidb_app.dp_medmng_cartridge crt; > > *Intermittently:* > > -- Dumped from database version 11.5 > > -- Dumped by pg_dump version 11.5 > > SET statement_timeout = 0; > > SET lock_timeout = 0; > > SET idle_in_transaction_session_timeout = 0; > > SET client_encoding = 'UTF8'; > > SET standard_conforming_strings = on; > > SELECT pg_catalog.set_config('search_path', 'hpdpidb_app', false); > > > CREATE VIEW hpdpidb_app.dp_cartridges AS > > SELECT crt.uuid > >    FROM dp_medmng_cartridge crt; > > Thanks, > > Neeraj > -- Adrian Klaver adrian.klaver@aklaver.com