You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1. yes correct 2. may be it is better not to automate that process. 3. so you need 2 slave and 1 master at least. because as you said sync. replication need at least 2 nodes to push commits sync. if it there is just one master node, you will not be able to commit..sftsz– sftsz2012-01-24 06:33:17 +00:00Commented Jan 24, 2012 at 6:33
-
steps 4, 5, and 6 are not necessary on the new master because, well, you're replicating to begin with. Second, what if the master died and was offline - you would not be able to connect to it. Steps 4,5, & 6 are typically done on a new slave node joining the replication pool.Eric– Eric2013-03-24 02:51:17 +00:00Commented Mar 24, 2013 at 2:51
-
@Eric as I played with this, steps 4,5,6 are required to bring back the old master to working state. Making the standby new primary immediately makes new WAL entry, so it's now 1 entry ahead of the old master. Starting the old master in standy mode threw errors on me, so i did have to make steps 4,5,6 on the old master to sync it with the new master (by using pg_basebackup, which can stream the whole xlog from the new master - replaces steps 4,5,6 in postgres >= 9.1 I think). Am I correct or did I do something wrong and this shoudln't be necessary?Dalibor Filus– Dalibor Filus2013-11-27 19:31:14 +00:00Commented Nov 27, 2013 at 19:31
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. sql-server), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-sql