Site icon シドニーで働くプログラマーのBlog(今はIT会社の経営者)

How to make testing environment about Postgres.

I often use postgres server,so sometimes I have to make testing environment for postgres in my windows pc.
So I want to write how to make testing environment about Postgres for my memo.

First Step

Please login postgres server, and then you have to change user what this user is postgres user.
And I use pg_dump.

-f to write file about output.
-Z。。Number this is level of compression.
-c it is cleaning for schema.

Second Step

You get dump file from server.And then you decompress file.

Third Step

You install postgres in your windows PC. Please check Postgres sites.

Fourth Step

Please copy dump file to there.


And please open command prompt and write this command.
Exit mobile version