Skip site navigation (1) Skip section navigation (2)

Re: Bytea question

From: "Chris Hoover" <revoohc(at)gmail(dot)com>
To: "Chris Hoover" <revoohc(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Bytea question
Date: 2007-04-11 13:17:56
Message-ID: 1d219a6f0704110617y31780a75q8f783893acb6ef07@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
No, I need to store the entire file as received into the database.

Chris

On 4/11/07, Alvaro Herrera <alvherre(at)commandprompt(dot)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
>

In response to

Responses

pgsql-admin by date

Next:From: Alvaro HerreraDate: 2007-04-11 13:22:58
Subject: Re: Bytea question
Previous:From: Alvaro HerreraDate: 2007-04-11 13:09:04
Subject: Re: Bytea question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group