As I try to restore my data, I get the warning message: pg_restore: [archiver] input file does not appear to be a valid archive (too short?) Ok, but the job ends with green status, I want it to finish with error. Is there any way of using $? there? -- View this message in context: http://postgresql.1045698.n5.nabble.com/pg-restore-must-failure-on-attempt-tp4798842p4798842.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
On Tuesday, September 13, 2011 7:57:44 am artdias90 wrote: > As I try to restore my data, I get the warning message: > > pg_restore: [archiver] input file does not appear to be a valid archive > (too short?) > > > Ok, but the job ends with green status, I want it to finish with error. Is > there any way of using $? there? First guess is you are using pg_restore to restore a text based dump file. If the database dump is in text format you will need to use psql. > > -- -- Adrian Klaver adrian.klaver@gmail.com
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера