Re: Bytea question - Mailing list pgsql-admin

From Chris Hoover
Subject Re: Bytea question
Date
Msg-id 1d219a6f0704110617y31780a75q8f783893acb6ef07@mail.gmail.com
Whole thread Raw
In response to Re: Bytea question  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Bytea question
Re: Bytea question
List pgsql-admin
No, I need to store the entire file as received into the database.

Chris

On 4/11/07, Alvaro Herrera < alvherre@commandprompt.com> wrote:
Chris Hoover escribió:
> Hopefully a quick question.
>
> If I store a file into a bytea field, is there anyway for postgres to read
> the contents of the file?

When you say "store a file", do you mean "store a filename"?

> Here is my scenario:
>
> Receive text file
> insert file into bytea field
> insert trigger fires
>  - read file contents
>  - post contents into production tables
>
> Is this at all possible, or am I going to need to store the original file
> and store/pass the file contents?


--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Bytea question
Next
From: Alvaro Herrera
Date:
Subject: Re: Bytea question