Re: pg_dump and restore without indexes

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: pg_dump and restore without indexes
Дата
Msg-id 8fbe6cf1-99b8-4af2-a147-acd90cd21907@ewie.name
обсуждение исходный текст
Ответ на Re: 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:58 +0200, Teja Jakkidi wrote:
> Also, is there a way we can remap schema or table during restore like
> how we have an option to remap in Oracle?

Not in pg_dump or pg_restore.  Maybe some third-party tool, but I don't
know.

I had to do this in the past and just renamed the schemas after
restoring into a new database.  Using a find-and-replace on the SQL dump
might also work (maybe with a clever regexp) but it's not foolproof if
the search matches false-positives in data segments or string literals.

-- 
Erik



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

Предыдущее
От: "Wetmore, Matthew (CTR)"
Дата:
Сообщение: pg_dump and restore without indexes
Следующее
От: Teja Jakkidi
Дата:
Сообщение: Re: pg_dump and restore without indexes