pg_restore 12 "permission denied for schema" errors - Mailing list pgsql-general

From Ron
Subject pg_restore 12 "permission denied for schema" errors
Date
Msg-id 287717df-88e2-a4a5-2025-260c39662bca@gmail.com
Whole thread Raw
Responses Re: pg_restore 12 "permission denied for schema" errors
List pgsql-general
RDS Postgresql 12.11

Backed up a database from one RDS instance, and now am trying to restore it 
to a new instance.  (If you're wondering why, it's to restore in an instance 
with less disk space.)

Here are the commands:

export PGHOST=${RDSENV}.xxxxxxxxxxxx.us-east-1.rds.amazonaws.com
cd /migrate/TASK001793786/2022-10-19b
DB=sides
pg_restore -v --create --clean --jobs=`nproc` -Fd --dbname=template1 $DB

Attached are log file extracts showing the errors.  The errors are only on 
partitioned child tables, the list of which is also attached.  However, some 
(but not many)

Some of the erroring tables are owned by sides_owner and some are owned by 
"stransuser".

"\z" on a child with errors looks exactly like a child without errors.

What could be the problem?

-- 
Angular momentum makes the world go 'round.
Attachment

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgres 15 upgrades and template1 public schema
Next
From: Lists
Date:
Subject: PG RPMS for RHEL 9 on aarch64?