Re: Bytea question

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Bytea question
Дата
Msg-id 20070411130904.GD4896@alvh.no-ip.org
обсуждение исходный текст
Ответ на Bytea question  ("Chris Hoover" <revoohc@gmail.com>)
Ответы Re: Bytea question  ("Chris Hoover" <revoohc@gmail.com>)
Список pgsql-admin
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 по дате отправления:

Предыдущее
От: "Chris Hoover"
Дата:
Сообщение: Bytea question
Следующее
От: "Chris Hoover"
Дата:
Сообщение: Re: Bytea question