From: Tom Lane <tgl@sss.pgh.pa.us>
To: 唯一★ <270246512@qq.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: 回复: BUG #16101: tables in the DB is not available after pg_restore
Date: Wed, 13 Nov 2019 10:00:23 -0500
Message-ID: <5802.1573657223@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_5865E10D689BCC05DFD0BC291ED869BEAA05@qq.com>
References: <16101-5a569e5aac6aa84e@postgresql.org>
<20191108111339.xlopjkbwfhxfvwt3@development>
<tencent_5865E10D689BCC05DFD0BC291ED869BEAA05@qq.com>
"=?gb18030?B?zqjSu6Hv?=" <270246512@qq.com> writes:
> After restore the database via pg_restore, the search_path look well 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, 270246512@qq.com, tomas.vondra@2ndquadrant.com
Subject: Re: 回复: BUG #16101: tables in the DB is not available after pg_restore
In-Reply-To: <5802.1573657223@sss.pgh.pa.us>
References: <16101-5a569e5aac6aa84e@postgresql.org> <20191108111339.xlopjkbwfhxfvwt3@development> <tencent_5865E10D689BCC05DFD0BC291ED869BEAA05@qq.com> <5802.1573657223@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox