Project

General

Profile

« Previous | Next » 

Revision 14851

fix: lib/sh/db.sh: pg_stop_backup(): ignore benign "a backup is not in progress" error

View differences:

trunk/lib/sh/db.sh
447 447
pg_stop_backup() # requires pg_start_backup() to have run
448 448
{ echo_func; as_root=1 psql <<<"SELECT pg_stop_backup();"; }
449 449

  
450
func_override pg_stop_backup__basic
451
pg_stop_backup() # does not require pg_start_backup() to have run
452
{
453
	echo_func
454
	pattern="^ERROR:  a backup is not in progress$" benign_error=1 \
455
ignore_err_msg pg_stop_backup__basic "$@"
456
}
457

  
450 458
pg_snapshot() # usage: [live=] [from=...] [to=...] pg_snapshot rsync_opts...
451 459
{
452 460
	echo_func; kw_params from to; local from="${from:-/var/lib/postgresql}"

Also available in: Unified diff