mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Split pg_start_backup() and pg_stop_backup() into two pieces
Move the actual functionality into a separate function that's easier to call internally, and change the SQL-callable function to be a wrapper calling this. Also create a pg_abort_backup() function, only callable internally, that does only the most vital parts of pg_stop_backup(), making it safe(r) to call from error handlers.
This commit is contained in:
@ -312,4 +312,8 @@ extern void HandleStartupProcInterrupts(void);
|
||||
extern void StartupProcessMain(void);
|
||||
extern void WakeupRecovery(void);
|
||||
|
||||
extern XLogRecPtr do_pg_start_backup(const char *backupidstr, bool fast);
|
||||
extern XLogRecPtr do_pg_stop_backup(void);
|
||||
extern void do_pg_abort_backup(void);
|
||||
|
||||
#endif /* XLOG_H */
|
||||
|
Reference in New Issue
Block a user