From: | Jeff Davis <list-pgsql-general(at)empires(dot)org> |
---|---|
To: | Patrick Nelson <pnelson(at)neatech(dot)com>, "PostgreSQL List (E-mail)" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Importing blob |
Date: | 2002-08-07 06:45:11 |
Message-ID: | 200208062345.11527.list-pgsql-general@empires.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Maybe it isn't searching on the path you think it is. Try using a full path to
the file.
Regards,
Jeff Davis
> Here is my table:
>
> CREATE TABLE setimg (id serial, setid int8, image OID);
>
> Here is my insert:
>
> INSERT INTO setimg(setid, image) VALUES ('32334', lo_import('32334.jpg'));
>
> And the error:
>
> lo_import: can't open unix file "32334.jpg": no such file or directory
>
> I have tried everything that I can think of to insert this file and every
> time I get the same error. I have set the full path to the file. I have
> change priv to 666. Confirmed proper ownership <user>:<user>. And still
> it does not see it. What am I doing wrong?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
From | Date | Subject | |
---|---|---|---|
Next Message | Mario Weilguni | 2002-08-07 06:53:19 | Re: Importing blob |
Previous Message | Axier | 2002-08-07 06:40:29 | Does COPY need a manual Commit? |