Re: pg_dump's checkSeek() seems inadequate

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump's checkSeek() seems inadequate
Дата
Msg-id 4908.1277686552@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_dump's checkSeek() seems inadequate  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Jun 27, 2010 at 6:19 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> A somewhat more plausible scenario is that somebody might hope that
>> they could do something like this:
>> 
>>        echo 'some custom header' >pg.dump
>>        pg_dump -Fc >>pg.dump

> That doesn't actually sound all that far-fetched.

I've got my doubts, but I guess we could write an even-more-bulletproof
test by doing ftello() and then seeing if fseeko to that position
complains.  This might be a good thing anyway since most of the other
uses of ftello aren't really checking for errors ...
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: suppress automatic recovery after back crash
Следующее
От: Tom Lane
Дата:
Сообщение: Re: suppress automatic recovery after back crash