Re: what is the best way of storing text+image documents in postgresql

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: what is the best way of storing text+image documents in postgresql
Date: 2011-06-10 12:33:42
Message-ID: 4DF20F26.7020009@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/10/2011 03:26 PM, John R Pierce wrote:

> actually, for THAT requirement, I think I'd store the questions in the
> database as plain text and wrap them in HTML formatting in your View or
> Presentation layer as its being sent to the user....

I agree - sending a PDF, Word doc, RTF, etc for that is just horrid.

Consider saveing the Word docs as plain text, then parsing them with a
Perl script or something to split them into questions and answers you
can store in the database.

Even if the script only does a rough job it might do enough of the job
that you could quickly go through and fix them up / check them against
the original documents.

There are almost certainly existing questionnaire / exam scripts or
applications you can re-use for the presentation side.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-06-10 12:50:04 Re: PGP encrypt/decrypt - Prereqistes
Previous Message Willy-Bas Loos 2011-06-10 12:15:38 [PERFORM] change sample size for statistics