Check if backup is in progress - Mailing list pgsql-general

From sodik
Subject Check if backup is in progress
Date
Msg-id CAEsx18sE1D54NF=UmsHfvg8_D5Usyn0UQZNqNXz0uCQ_S7uhtg@mail.gmail.com
Whole thread Raw
Responses Re: Check if backup is in progress
List pgsql-general
Hi,

is there any way how to check that postgres 9.1 is currently in backup mode? 

Imagine the situation that my DB is running and the backup is remotely started by 

# select pg_start_backup('backup', true);

However the remote site crashed and can't stop the backup. Is there any way how to check if something like it happen or somehow configure the timeout for backup procedure? 
Currently only solution that comes to my mind is to try to start another backup, if this fails, I know that it is in progress.

Thanks
Stano

pgsql-general by date:

Previous
From: "Musial, Jan (GIUB)"
Date:
Subject: Re: Dynamic update of a date field
Next
From: John R Pierce
Date:
Subject: Re: Unable to execute \copy from Client Application