Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
what will be primary machine fail of postgresql replication

I am new at postgresql replication and reading documentations. I looked some replication tutorials. There is one primary machine and multiple stand by machines.

  • what will be if primary machine fails? Can I convert stand by machines to primary machine?
  • if stand by machines fails, will system gives error? (for example database errors because of connection error.)

I need some fail scenarios answer.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

  • if primary machine fails slaves won't be able to get replication from master. To promote slave a new master, run pg_ctl promote ont it or just create a trigger file. If other slaves were configured to stream from this one (cascaded replication) you will have to define latest timeline in recovery.conf.
  • if postgres dies on slave, usually you have reason for it in postgres.log. If you ask if master will notice death of any of slaves - no.

If you want some tools, check https://github.com/2ndQuadrant/repmgr

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!