Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to merge data from older database to new database in postgresql?

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 870
    Comment on it

    If you want to merging data from older database to new database in PostgreSQL or want to merge data from other database(db1) to another database(db2), follow these below steps:

    1. from db1, export all the necessary tables to csv using:
    copy (select * from table_name) to E'C:\\Users\\dinesh\\Documents\\table_name.csv' csv Header;
    
    1. Now in db2, import using:
    COPY table_name FROM E'C:\\Users\\dinesh\\Documents\\table_name.csv' WITH Delimiter ',' Null '' csv;
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: