Best way to store files inside db

From: "Chris Hoover" <revoohc(at)sermonaudio(dot)com>
To: "PostgreSQL Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Best way to store files inside db
Date: 2005-04-13 17:06:08
Message-ID: 425D5180.6020109@sermonaudio.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I am looking for some help/advice. We need to store some files inside
postgres (at least it has been requested of us). What is the best way
to do this? Right now, the files are all human readable text files, but
that could change.

I could store the contents of the human readable files in a text field,
but I believe the requester would really like the real file to be stored
as close to unmodified as possible.

How can I do this? I am thinking to store unmodified, I'll have to use
a bytea field. However, how do I tell the database to insert a file
(say "c:\test.txt") into the table?

Thanks for any help/pointer.

Chris

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Joshua D. Drake 2005-04-13 17:41:07 Re: Best way to store files inside db
Previous Message Chris Hoover 2005-04-13 16:14:22 Help installing 8.0.2 rpms on RH 3.0