mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-09 14:45:47 +02:00
f94c5ab447
--debug and --verbose had actually the same meaning as they were aimed at giving to the user information regarding how the process is running, hence both options are merged into --verbose and use elog(LOG) to decide if a given message should be printed out depending on the verbosity of the call. This makes a couple of routines more readable as they do not depend on any boolean checks. The "_()" have been removed from the code, those are aimed at being used for translation but having them mandatorily in each log message is just useless noise. If needed, pgut.c should be updated in consequence to have a more portable facility. At the same time this commit takes care of putting into correct shape some code paths more in-line with PostgreSQL policy. There are surely more of this kind of ugly stuff but at this stage things are more simple and more manageable.
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
\! bash sql/init.sh
|
|
###### INIT COMMAND TEST-0001 ######
|
|
###### success with archive_command ######
|
|
0
|
|
results/init/backup/
|
|
results/init/backup/backup/
|
|
results/init/backup/backup/pg_xlog/
|
|
results/init/backup/pg_arman.ini
|
|
###### INIT COMMAND TEST-0002 ######
|
|
###### success with archive_command and log_directory ######
|
|
0
|
|
results/init/backup/
|
|
results/init/backup/backup/
|
|
results/init/backup/backup/pg_xlog/
|
|
results/init/backup/pg_arman.ini
|
|
###### INIT COMMAND TEST-0003 ######
|
|
###### success without archive_command ######
|
|
WARNING: ARCLOG_PATH is not set because archive_command is empty.Please set ARCLOG_PATH in pg_arman.ini or environmental variable
|
|
0
|
|
results/init/backup/
|
|
results/init/backup/backup/
|
|
results/init/backup/backup/pg_xlog/
|
|
results/init/backup/pg_arman.ini
|
|
###### INIT COMMAND TEST-0004 ######
|
|
###### failure with backup catalog already existed ######
|
|
ERROR: backup catalog already exist. and it's not empty
|
|
2
|
|
|
|
###### INIT COMMAND TEST-0005 ######
|
|
###### failure with backup catalog should be given as absolute path ######
|
|
ERROR: -B, --backup-path must be an absolute path
|
|
12
|
|
|