@classmethod<EOL><INDENT>def run_stop_backup(cls):<DEDENT>
def handler(popen):<EOL><INDENT>assert popen.returncode != <NUM_LIT:0><EOL>raise UserException('<STR_LIT>')<EOL><DEDENT>return cls._dict_transform(psql_csv_run(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(cls._wal_name()),<EOL>error_handler=handler))<EOL>
Stop a hot backup, if it was running, or error

Return the last WAL file name and position that is required to
gain consistency on the captured heap.