/
balmaster
/
postgres
Обзор
Документация
Войти
/
balmaster
/
postgres
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/bin/pg_dump/pg_backup_utils.h
41 строка
1 KB
Bruce Momjian
Update copyright for 2026
01 янв 2026, 21:24
01 янв 2026, 21:24
451c439
Код
Авторство
О чём код?
/*------------------------------------------------------------------------- * * pg_backup_utils.h * Utility routines shared by pg_dump and pg_restore. * * * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/bin/pg_dump/pg_backup_utils.h * *------------------------------------------------------------------------- */ #ifndef PG_BACKUP_UTILS_H #define PG_BACKUP_UTILS_H #include "common/logging.h" /* bits returned by set_dump_section */ #define DUMP_PRE_DATA 0x01 #define DUMP_DATA 0x02 #define DUMP_POST_DATA 0x04 #define DUMP_UNSECTIONED 0xff typedef void (*on_exit_nicely_callback) (int code, void *arg); extern const char *progname; extern void set_dump_section(const char *arg, int *dumpSections); extern void on_exit_nicely(on_exit_nicely_callback function, void *arg); pg_noreturn extern void exit_nicely(int code); /* In pg_dump, we modify pg_fatal to call exit_nicely instead of exit */ #undef pg_fatal #define pg_fatal(...) do { \ pg_log_generic(PG_LOG_ERROR, PG_LOG_PRIMARY, __VA_ARGS__); \ exit_nicely(1); \ } while(0) #endif /* PG_BACKUP_UTILS_H */