Re: Strange "permission denied" errors on pg_restore

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Strange "permission denied" errors on pg_restore
Date: 2024-06-29 05:04:22
Message-ID: CANzqJaAVrQyJ_4ASm0PkmUQ7+U8PHKMTU4NAGFzM0w4FN5tDrQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sat, Jun 29, 2024 at 12:31 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:

> On Fri, 2024-06-28 at 09:34 -0400, Ron Johnson wrote:
> > pg_restore: error: COPY failed for table "batch_rp4_y2022m08": ERROR:
> permission denied for schema tapschema
>
> - Was the database you restored into totally empty?
>
> - What was the exact "pg_restore" command line?
>

pg_restore -v --clean --create -Fd -j6 --dbname=postgres tap &>
tap_restore.log

> - What was the exact command line to take the dump?
>

declare -i Threads=$((`nproc`*3/4))
declare -i Zlvl=6
DB=tap
pg_dump -j ${Threads} -Z${ZLvl} -v -C -Fd --file=$DB $DB 2> ${DB}_pgdump.log

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2024-06-29 05:13:21 Re: Strange "permission denied" errors on pg_restore
Previous Message Laurenz Albe 2024-06-29 04:31:01 Re: Strange "permission denied" errors on pg_restore