| От | Joshua Tolley |
|---|---|
| Тема | Re: storing a text file |
| Дата | |
| Msg-id | 4b784f30.9513f30a.15a6.ffff9053@mx.google.com обсуждение исходный текст |
| Ответ на | storing a text file (Mag Gam <magawake@gmail.com>) |
| Ответы |
Re: storing a text file
|
| Список | pgsql-novice |
On Sun, Feb 14, 2010 at 09:39:13AM -0500, Mag Gam wrote: > I would like to index several documents. They are all text files, I > was wondering what is the best way to do this. I was thinking to have > a column which will have: > > *docid (serial) > date (timestamp) > document (varchar) > > Eventually, I would like to access these documents via a webbrowser > and I would like to search these documents. Each document is about 10 > to 20kb in size. > > My question is, what datatype would be ideal for "document" field? > Also, any thoughts and recommendations ? Make it a TEXT type. You can use PostgreSQL's full text search options for searching across the set of all documents for given words or phrases. -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера