pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14631: Allow pg_restore to remap schema
2+ messages / 2 participants
[nested] [flat]

* BUG #14631: Allow pg_restore to remap schema
@ 2017-04-24 22:20  cinbau@warpmail.net
  0 siblings, 1 reply; 2+ messages in thread

From: cinbau@warpmail.net @ 2017-04-24 22:20 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14631
Logged by:          Cliff Inbau
Email address:      cinbau@warpmail.net
PostgreSQL version: 9.6.2
Operating system:   CentOS 7
Description:        

When using pg_dump with the data only and compressed options (-a -Fc), it
would be useful to allow pg_restore to restore the data to the same table,
but in a different schema.   Oracle's data pump allows remapping of both
schemas and tablespaces (e.g. remap_schema=schema1:schema1).




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14631: Allow pg_restore to remap schema
@ 2017-04-25 00:02  Michael Paquier <michael.paquier@gmail.com>
  parent: cinbau@warpmail.net
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2017-04-25 00:02 UTC (permalink / raw)
  To: cinbau@warpmail.net; +Cc: pgsql-bugs

On Tue, Apr 25, 2017 at 7:20 AM,  <cinbau@warpmail.net> wrote:
> When using pg_dump with the data only and compressed options (-a -Fc), it
> would be useful to allow pg_restore to restore the data to the same table,
> but in a different schema.   Oracle's data pump allows remapping of both
> schemas and tablespaces (e.g. remap_schema=schema1:schema1).

Please note that this is not a bug, so this had better be discussed on
a mailing list with a more general purpose like pgsql-general. At the
end this is not much different than renaming the schema or tablespace
after doing a restore, assuming that the target node does not have a
schema with the same name as the dump, still you could always rename
as well temporarily any existing schema on the target server.
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-04-25 00:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24 22:20 BUG #14631: Allow pg_restore to remap schema cinbau@warpmail.net
2017-04-25 00:02 ` Michael Paquier <michael.paquier@gmail.com>

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