Best way to store and retrieve large objects in database for email program

Поиск
Список
Период
Сортировка
От Greg
Тема Best way to store and retrieve large objects in database for email program
Дата
Msg-id 000d01c6889e$d2d9d7a0$788d86e0$@co.za
обсуждение исходный текст
Ответы Re: Best way to store and retrieve large objects in  ("Daniel Verite" <daniel@manitou-mail.org>)
Re: Best way to store and retrieve large objects in database for email program  (Wayne Conrad <wconrad@yagni.com>)
Список pgsql-general

I am creating an email client that will contain email messages. Now a message may have multiple large attachments.

 

1.)    Would the best way to store these large objects be in an oid field?

2.)    I assume for performance reasons I should place these large objects in a separate table called attachments. And create an attachments table for each user?

3.)    Only when a user clicks on an attachment to open it, should I use server side SQL functions like lo_export and lo_open to read the data to a file stream for my application to deal with?

 

Am I on the right track or can anybody recommend a better solution?

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

Предыдущее
От: Berend Tober
Дата:
Сообщение: Re: What is the point of create or replace view command
Следующее
От: "Greg"
Дата:
Сообщение: FW: Installing PostGreSQL automatically