0

Is there some tool to copy database from one PostgreSQL to other on the fly NOT INVOLVING BACKUPS/RESTORES? The tool which automatically keeps database structure on slave server in sync with master server. Probably the tool with differential mode looking at records' primary keys.

I could use replication, but the problem is that it ties two servers in a permanent manner, and I do not need a continuous replication. I need to start it manually. It should terminate when finishes.

I had started to write my own .NET tool using reflection etc, but thought that may be somebody has already written such a tool.

1 Answer 1

2

Replication is the term you are looking for.

There are many variations on how to do this. Start by reading the manual and then google a little.

If the whole-system replication built-in to recent versions of PostgreSQL isn't to your taste then try searching for "slony" or "pg-pool" or "bucardo" (among others).

Sign up to request clarification or add additional context in comments.

2 Comments

Is the replication possible on Herkou?
Then the problem is that your question isn't accurate and neither will any answers be. Sit down and think exactly what you want to achieve and try posting another question. Make sure you are clear about what you want copied, what you will be changing and what should happen if something has been changed in both databases between updates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.