Re: lo_import

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: lo_import
Дата
Msg-id jdvk8d$keo$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Call a external app on postgreSQL start-up (windows)  (Maurício Cruz <cruz@sygecom.com.br>)
Список pgsql-sql
On 2012-01-03, Maurício Cruz <cruz@sygecom.com.br> wrote:
> Hi all,
>
> I'm trying to use lo_import to import a file into my database, if I 
> execute from postgres runing in my local machine
> it works perfectly, but if I do it in the postgres runing in the server, 
> it says "No such file or directory"
>
> I Guess postgres only see file on the machine it is runing and not 
> through the network...

It can only see the files the database server can see.

> I will have to upload the file into the server and then use import  ?   

that would work

> is there any other way ?

the "\lo_import" command in psql, which reads files as the current
user anp pushes them through the database connection.
the best way is probably to add the file import feature to your
appplication.

-- 
⚂⚃ 100% natural



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

Предыдущее
От: Tim Landscheidt
Дата:
Сообщение: Re: lo_import
Следующее
От: rverghese
Дата:
Сообщение: ignore unique violation OR check row exists