agora inbox for pgsql-admin@postgresql.org  
help / color / mirror / Atom feed
From: Teja Jakkidi <teja.jakkidi05@gmail.com>
To: Erik Wienhold <ewie@ewie.name>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: pg_dump and restore without indexes
Date: Tue, 4 Jun 2024 11:30:32 -0700
Message-ID: <D97C032D-6EF0-4E64-9E86-8D0D19B26BEB@gmail.com> (raw)
In-Reply-To: <8fbe6cf1-99b8-4af2-a147-acd90cd21907@ewie.name>
References: <8fbe6cf1-99b8-4af2-a147-acd90cd21907@ewie.name>

Thank you for your inputs, Erik.

Regards,
J. Teja.

> On Jun 4, 2024, at 11:27 AM, Erik Wienhold <ewie@ewie.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





view thread (6+ messages)

Message-ID: <D97C032D-6EF0-4E64-9E86-8D0D19B26BEB@gmail.com>
Permalink:  ../D97C032D-6EF0-4E64-9E86-8D0D19B26BEB@gmail.com/
Also on:    postgresql.org/message-id/D97C032D-6EF0-4E64-9E86-8D0D19B26BEB@gmail.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: teja.jakkidi05@gmail.com, ewie@ewie.name, pgsql-admin@lists.postgresql.org
  Subject: Re: pg_dump and restore without indexes
  In-Reply-To: <D97C032D-6EF0-4E64-9E86-8D0D19B26BEB@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox