Re: pg_dump and restore without indexes

From: Teja Jakkidi <teja(dot)jakkidi05(at)gmail(dot)com>
To: Erik Wienhold <ewie(at)ewie(dot)name>
Cc: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_dump and restore without indexes
Date: 2024-06-04 18:30:32
Message-ID: D97C032D-6EF0-4E64-9E86-8D0D19B26BEB@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thank you for your inputs, Erik.

Regards,
J. Teja.

> On Jun 4, 2024, at 11:27 AM, Erik Wienhold <ewie(at)ewie(dot)name> wrote:
>
> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mohan NBSPS 2024-06-05 00:08:10 Re: postgrsql 9.5: Old WAL files remain in secondary `pg_xlog`
Previous Message Erik Wienhold 2024-06-04 18:27:08 Re: pg_dump and restore without indexes