mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Add a --force option to upgrade an existing PostgreSQL instalation.
This could be useful, for readding recently failed nodes.
This commit is contained in:
12
check_dir.c
12
check_dir.c
@@ -202,3 +202,15 @@ mkdir_p(char *path, mode_t omode)
|
||||
(void) umask(oumask);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
is_pg_dir(char *dir)
|
||||
{
|
||||
char path[8192];
|
||||
struct stat sb;
|
||||
|
||||
sprintf(path, "%s/PG_VERSION", dir);
|
||||
|
||||
return (stat(path, &sb) == 0) ? true : false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user