If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Can I Replicate Databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-11, 20:06
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Question Can I Replicate Databases

I have a database server running PostgreSQL 8.4 on Debian Linux and today we suffered a catastrophic hardware failure. The server literally died to a point we couldn't recover regardless of RAID. So now we've got two brand new identical Dell servers which I just performed the O.S. install on both systems but my question is it possible to replicate the data from PostgreSQL across the network to a slave PostgreSQL server?

I did do a search for clustering PostgreSQL however I think my terminology is off. Is there support for such a process and if so, has anyone done easy to follow write-ups?
Reply With Quote
  #2 (permalink)  
Old 11-03-11, 03:45
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Cluster unfortunately has several meanings especially in the PostgreSQL world.

You want a stand-by server using replication.

This is possible with 8.4, see here:
http://www.postgresql.org/docs/8.4/s...ilability.html

But things got a lot easier with 9.0 and 9.1. Using streaming replication minimizes the possible loss of data in case the server goes down.

http://www.postgresql.org/docs/9.1/s...ilability.html

A good overview of all your possibilities is in the Postgres Wiki:

http://wiki.postgresql.org/wiki/Repl...ection_Pooling

I would recommend you upgrade to 9.x and use streaming replication with a hot or warm standby server.

Whether or not you need synchronous replication is something you need to decide. Synchronous means you will never lose any data, but the downside is that it has a performance impact on the main server.

If you start implementing that, I strongly recommend to subscribe to the Postgres mailing lists (-general and -admin)
You'll get excellent help there (directly from the developers!)
Reply With Quote
  #3 (permalink)  
Old 11-03-11, 20:37
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Great information. Thank you!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On