basic slave promotion for postgresql