Re: pg_dump and restore without indexes

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: pg_dump and restore without indexes
Дата
Msg-id dcd0950f-facc-4646-9442-0feb8f92b525@ewie.name
обсуждение исходный текст
Ответ на pg_dump and restore without indexes  (Teja Jakkidi <teja.jakkidi05@gmail.com>)
Ответы Re: pg_dump and restore without indexes
Список pgsql-admin
On 2024-06-04 19:42 +0200, Teja Jakkidi wrote:
> I am trying to look for an option that can be added in pg_dump command
> to ignore all the indexes when creating the schema dump with data.  Is
> there any such option that can be used in pg_dump? Or in pg_restore?

You can get the table of contents with pg_restore --list and remove or
comment out the INDEX entries in that file.  Then feed the TOC back into
pg_restore with --use-list.  The implicit indexes for primary key and
unique constraints will still be created, though.

-- 
Erik



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

Предыдущее
От: Teja Jakkidi
Дата:
Сообщение: pg_dump and restore without indexes
Следующее
От: Teja Jakkidi
Дата:
Сообщение: Re: pg_dump and restore without indexes