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

How to make testing environment about Postgres.

I often use postgres ,so sometimes I have to make testing environment for postgres in my 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 is cleaning for schema.

Second Step

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

Third Step

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

Fourth Step

Please copy dump file to there.


And please open prompt and write this command.

Related posts

Exit mobile version