Re: How to implement backup protocol

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: How to implement backup protocol
Дата
Msg-id ekhs0e$26vb$2@news.hub.org
обсуждение исходный текст
Ответ на How to increace nightly backup speed  ("Andrus" <eetasoft@online.ee>)
Ответы Re: How to implement backup protocol  (Jeff Davis <pgsql@j-davis.com>)
Re: How to implement backup protocol  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Список pgsql-general
> You could use an *un*trusted procedural language to create a
> function to binary-read the backup from disk and return it
> as a bytea field. Not sure how efficient that is, though.
>
> You could then simply do
>
> select get_backup();
>
> If you allow for parameters you could make it return certain
> backups based on, perhaps, timestamp of creation.


Karsten,

This id good idea but it forces to use Postgres protocol for downloading.
This protocol has some timeouts which are too small for large file download.
Postgres protocol has also a lot of overhead added to downloadable data.
It also requires that whole downloadable file must fit into memory.

I used ODBC.
I tried this but was forced to store big files in 1 MB chunks in bytea
fields and create file from downloaded blocks

So I'm looking a more efficient protocols to download backup file.

Or should I really write code which divides backup file to 1 MB chunks and
stores them in bytea field ?

Andrus.



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

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: How to implement backup protocol
Следующее
От: novnov
Дата:
Сообщение: Re: Editing contrib modules which are loaded by default?