dbTalk Databases Forums  

How to copy a PG database

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss How to copy a PG database in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
G Lam
 
Posts: n/a

Default How to copy a PG database - 06-04-2005 , 11:40 AM






Hi,
I have a PG database "foodsvc" and I want to make a copy of it with a new
name "newfoodsvc". So that I can play with the "newfoodsve" without any
damage to the "foodsvc".
How can I do that?
Thank you.
GL




Reply With Quote
  #2  
Old   
Heimlich Manure
 
Posts: n/a

Default Re: How to copy a PG database - 10-21-2005 , 02:12 AM






Think in terms of

pgdump foodsvc | sed s/foodsvc/newfoodsvc/g | psql

"G Lam" <No_spam (AT) anywhere (DOT) com> wrote

Quote:
Hi,
I have a PG database "foodsvc" and I want to make a copy of it with a new
name "newfoodsvc". So that I can play with the "newfoodsve" without any
damage to the "foodsvc".
How can I do that?
Thank you.
GL






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.