Re: Incorrect syntax when restoring a single table

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Incorrect syntax when restoring a single table
Дата
Msg-id CANzqJaCkMYpSQUpcfUi7KnrH_+C7v-z0SUEoSR=y3OVmyqmOOg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Incorrect syntax when restoring a single table  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Incorrect syntax when restoring a single table
Список pgsql-admin
On Thu, Jun 27, 2024 at 11:05 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Ron Johnson <ronljohnsonjr@gmail.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.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Incorrect syntax when restoring a single table
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Incorrect syntax when restoring a single table