Re: BUG #16101: tables in the DB is not available after pg_restore

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: BUG #16101: tables in the DB is not available after pg_restore
Дата
Msg-id 20191108111339.xlopjkbwfhxfvwt3@development
обсуждение исходный текст
Ответ на BUG #16101: tables in the DB is not available after pg_restore  (PG Bug reporting form <noreply@postgresql.org>)
Ответы 回复: BUG #16101: tables in the DB is not available after pg_restore  ("唯一★" <270246512@qq.com>)
Список pgsql-bugs
On Fri, Nov 08, 2019 at 07:37:24AM +0000, PG Bug reporting form wrote:
>The following bug has been logged on the website:
>
>Bug reference:      16101
>Logged by:          zeng
>Email address:      270246512@qq.com
>PostgreSQL version: 10.10
>Operating system:   suse
>Description:
>
>hi,
>I have one question about pg_restore tool, tables in the DB is not available
>after restore. Even if the user is still the owner of table after restore.
>Steps:
>1.    Create one database and the owner is user1. And create table and pop
>the data with user1
>2.    Use pg_dump tool to backup one database with superuser postgres.
>3.    Use pg_restore tool to restore the database with the parameter –clean
>and supper user.
>4.    Connect the db with user1 and found the user does not select table as
>below.
>  cdb=> \dt
>Did not find any relations.
>

A wild guess - the objects are in a schema that is not listed in
search_path.

If that's not the case, you'll have to give us more details, and perhaps
a reproducer so that we can look more closely.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16102: Table can't be drop on PostgreSQL 10.09 if the table was created from PostgreSQL 10.10
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: pg_dump: error: schema with OID 7956828 does not exist