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 1iUu8H-0000dy-Dj for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Nov 2019 15:00:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iUu8F-0002oQ-Sm for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Nov 2019 15:00:31 +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 1iUu8F-0002oB-L5 for pgsql-bugs@lists.postgresql.org; Wed, 13 Nov 2019 15:00:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUu8B-0006dx-T2 for pgsql-bugs@lists.postgresql.org; Wed, 13 Nov 2019 15:00:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xADF0Ns9005803; Wed, 13 Nov 2019 10:00:24 -0500 From: Tom Lane To: "=?gb18030?B?zqjSu6Hv?=" <270246512@qq.com> cc: "=?gb18030?B?VG9tYXMgVm9uZHJh?=" , "=?gb18030?B?cGdzcWwtYnVncw==?=" Subject: Re: =?gb18030?B?u9i4tKO6IEJVRyAjMTYxMDE6IHRhYmxlcyBpbiB0?= =?gb18030?B?aGUgREIgaXMgbm90IGF2YWlsYWJsZSBhZnRlciBw?= =?gb18030?B?Z19yZXN0b3Jl?= In-reply-to: References: <16101-5a569e5aac6aa84e@postgresql.org> <20191108111339.xlopjkbwfhxfvwt3@development> Comments: In-reply-to "=?gb18030?B?zqjSu6Hv?=" <270246512@qq.com> message dated "Wed, 13 Nov 2019 15:02:14 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5801.1573657223.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Nov 2019 10:00:23 -0500 Message-ID: <5802.1573657223@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "=3D?gb18030?B?zqjSu6Hv?=3D" <270246512@qq.com> writes: > After restore the database via pg_restore,  the search_path look we= ll and is the same as before restore. This looks like maybe your user "cm" lacks permissions on the public schema? If "select current_schemas(true)" doesn't show the public schema as part of the active search path, that's probably your issue. "\dn+" is another way to check. regards, tom lane