Re: lo_import

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: lo_import
Дата
Msg-id 1166811124.29099.21.camel@localhost.localdomain
обсуждение исходный текст
Ответ на lo_import  (Bob Pawley <rjpawley@shaw.ca>)
Список pgsql-general
On Fri, 2006-12-22 at 10:05 -0800, Bob Pawley wrote:
> My remote server recognizes the fokkowing expression as a server side
> command.
>
> -----
>  Insert Into library.devices (Item_id, device, a_d, designation,
> function_, type_, function1)
>  Values ( 'Tdeviceft2a',  lo_import('c:/program
> files/postgresql/8.0/lib/images/magflow.bmp'), 'a', 'F', 'A_Flow',
> 'mon', 'Flow') ;
>

If what you are asking is how can I use lo_import from a remote client,
you can't, unless the file you are importing is on the server.

Joshua D. Drake


> ---
>
> Various documents, including PostgreSQL, suggest modifications such as
> - \lo_import, lo_import(), oid lo_import - to make the statement work
> on the client side.
>
> I can't make them work. What am I missing?
>
>  Insert Into library.devices (Item_id, device, a_d, designation,
> function_, type_, function1)
>  Values ( 'Tdeviceft2a',  \lo_import ('c:/program
> files/postgresql/8.0/lib/images/magflow.bmp'), 'a', 'F', 'A_Flow',
> 'mon', 'Flow') ;
>
> Bob Pawley
--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate




В списке pgsql-general по дате отправления:

Предыдущее
От: Bob Pawley
Дата:
Сообщение: lo_import
Следующее
От: Joost Kuckartz
Дата:
Сообщение: Re: Unable to start server - winxp