Re: pg_dump's checkSeek() seems inadequate

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pg_dump's checkSeek() seems inadequate
Дата
Msg-id 4C27F9FE.10209@dunslane.net
обсуждение исходный текст
Ответ на Re: pg_dump's checkSeek() seems inadequate  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_dump's checkSeek() seems inadequate  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Tom Lane 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
>
> I believe that (at least on most Unixen) doing fseeko(fp, 0, SEEK_SET)
> would result in overwriting the custom header, where it would not have
> been overwritten before.  However the usefulness of the above is at
> best far-fetched; and I'm not very sure that it works today anyway,
> since pg_dump/pg_restore seem to assume that manual byte counting should
> match the results of ftell().
>
>             
>   

What would anyone hope to achieve by such a manoeuvre, even if it 
worked, which I am close the dead sure it would not?

cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: suppress automatic recovery after back crash
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump's checkSeek() seems inadequate