Skip to content

Commit 7c4c842

Browse files
author
Artur Zakirov
committed
PGDATA parameter is required for init
1 parent ba54e49 commit 7c4c842

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

init.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ do_init(void)
3838

3939
struct dirent **dp;
4040
int results;
41+
42+
/* PGDATA is always required */
43+
if (pgdata == NULL)
44+
elog(ERROR, "Required parameter not specified: PGDATA "
45+
"(-D, --pgdata)");
46+
4147
if (access(backup_path, F_OK) == 0)
4248
{
4349
results = scandir(backup_path, &dp, selects, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy