| От | Michael Paquier |
|---|---|
| Тема | pgsql: Consolidate cross-option checks in pg_restore |
| Дата | |
| Msg-id | E1gHJw7-0007Ul-VX@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Consolidate cross-option checks in pg_restore This moves one check for conflicting options from the archive restore code to the main function where other similar checks are performed. Also reword the error message to be consistent with other messages. The only option combination impacted is --create specified with --single-transaction, and informing the caller at an early step saves from opening the archive worked on. A TAP test is added for this combination. Author: Daniel Gustafsson Reviewed-by: Fabien Coelho Discussion: https://postgr.es/m/616808BD-4B59-4E6C-97A9-7317F62D5570@yesql.se Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c34bca9ea55e1d7c207ebc30691a8d2b421100eb Modified Files -------------- src/bin/pg_dump/pg_backup_archiver.c | 9 --------- src/bin/pg_dump/pg_restore.c | 11 +++++++++++ src/bin/pg_dump/t/001_basic.pl | 8 +++++++- 3 files changed, 18 insertions(+), 10 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера