Re: File Handling in pgsql

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: File Handling in pgsql
Дата
Msg-id 4BC2ECD0.2010900@postnewspapers.com.au
обсуждение исходный текст
Ответ на File Handling in pgsql  (Vikram A <vikkiatbipl@yahoo.in>)
Ответы Re: File Handling in pgsql  (Vikram A <vikkiatbipl@yahoo.in>)
Список pgsql-general
On 12/04/10 17:17, Vikram A wrote:
> Hi,
> I would like to store the files(.doc, .xls , images, vedios) in the
> postgresql data base as a field.

If you really want to store them in the database your options are a
bytea field (warning: size limits) or a large object. See the manual.

Do you really need ACID-compliant access to your files? Have you
considered storing just the paths to the files in the database, and the
files themselves externally to the database in the file system? This is
MUCH more efficient if you don't need the facilities the database requires.

There has been lots of discussion of this in the past on this list, so
consider searching the mailing list archives and Google.

--
Craig Ringer

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

Предыдущее
От: Vikram A
Дата:
Сообщение: File Handling in pgsql
Следующее
От: Ben Martin
Дата:
Сообщение: Re: Creating a read/write virtual table?