Re: Incorrect syntax when restoring a single table

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Incorrect syntax when restoring a single table
Date: 2024-06-27 15:23:10
Message-ID: CANzqJaCkMYpSQUpcfUi7KnrH_+C7v-z0SUEoSR=y3OVmyqmOOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Jun 27, 2024 at 11:05 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Ron Johnson <ronljohnsonjr(at)gmail(dot)com> writes:
> > $ pg_restore -v -a -t tapschema.batch_rp4_y2022m08 -Fd --dbname=tap tap
>
> I think what you have to do is write -n tapschema -t batch_rp4_y2022m08
>

That indeed is the solution. Should have seen it in the docs.

pg_restore's use of "-t" is inconsistent with other utilities (pg_dump,
vacuumdb, reindexdb, clusterdb). That seems to be a design bug.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2024-06-27 15:40:26 Re: Incorrect syntax when restoring a single table
Previous Message Tom Lane 2024-06-27 15:05:02 Re: Incorrect syntax when restoring a single table