Re: Re: Small bug in pg_dump

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Re: Small bug in pg_dump
Дата
Msg-id 200103191459.JAA09170@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Re: Small bug in pg_dump  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
> This does make me wonder (again) about some kind of pg_dump regression
> test. ISTM that a test should be doable by building a DB from data files,
> dumping it, restoring it, then using COPY to extract the data back to files
> (and probably doing a sort on the output). We could also store a BLOB or
> two. Then we compare the initial data files with the final ones. This will
> test the integrity of the data & BLOB dump/restore. We then also need to
> test the metadata integrity somehow, probably by dumping & restoring the
> regression DB, but we'd need to modify the pg_dump output somewhat, I think.

Yes, I have often caught dump bugs by doing a COPY/restore/COPY and
comparing the two COPY files.  Not sure if that is what you meant.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: New version of contrib-intarray is ready !
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: new version of contrib-intarray