Re: Storing many big files in database- should I do it?

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: Storing many big files in database- should I do it?
Дата
Msg-id
j2ob42b73151004291132n923d4a5i161a6d30e57802fe@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Storing many big files in database- should I do it? Rod <cckramer@gmail.com>
Re: Storing many big files in database- should I do it? John R Pierce <pierce@hogranch.com>
Re: Storing many big files in database- should I do it? Rod <cckramer@gmail.com>
Re: Storing many big files in database- should I do it? "Massa, Harald Armin" <chef@ghum.de>
Re: Storing many big files in database- should I do it? Rod <cckramer@gmail.com>
Re: Storing many big files in database- should I do it? Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: Storing many big files in database- should I do it? Adrian von Bidder <avbidder@fortytwo.ch>
Re: Storing many big files in database- should I do it? Anthony <osm@inbox.org>
Re: Storing many big files in database- should I do it? Adrian Klaver <adrian.klaver@gmail.com>
Re: Storing many big files in database- should I do it? Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: Storing many big files in database- should I do it? David Wall <d.wall@computer.org>
Re: Storing many big files in database- should I do it? Justin Graf <justin@magwerks.com>
Re: Storing many big files in database- should I do it? Scott Ribe <scott_ribe@killerbytes.com>
Re: Storing many big files in database- should I do it? Alvaro Herrera <alvherre@commandprompt.com>
Re: Storing many big files in database- should I do it? Tom Lane <tgl@sss.pgh.pa.us>
Re: Storing many big files in database- should I do it? Justin Graf <justin@magwerks.com>
Re: Storing many big files in database- should I do it? Guillaume Lelarge <guillaume@lelarge.info>
Re: Storing many big files in database- should I do it? David Wall <d.wall@computer.org>
Re: Storing many big files in database- should I do it? Justin Graf <justin@magwerks.com>
Re: Storing many big files in database- should I do it? Merlin Moncure <mmoncure@gmail.com>
On Thu, Apr 29, 2010 at 1:51 PM, David Wall  wrote:
> I missed the part that BYTEA was being used since it's generally not a good
> way for starting large binary data because you are right that BYTEA requires
> escaping across the wire (client to backend) both directions, which for true
> binary data (like compressed/encrypted data, images or other non-text files)
> makes for a lot of expansion in size and related memory.

what?? postgresql supports binary data in both directions without
escaping.  here is how i do it with libpqtypes:

PGbytea b;
b.data = some_pointer;
b.len = data_length;

res = PGexecf(conn, "insert into table values (%bytea*);", b);

merlin
В списке pgsql-general по дате отправления
От: Andy Colson
Дата:
Сообщение: Re: Performance and Clustering
От: Ozz Nixon
Дата:
Сообщение: Re: Performance and Clustering
FAQ