Re: lo_import

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: Ramon Alonso Allende <allende(at)gredos(dot)cnb(dot)uam(dot)es>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: lo_import
Date: 2003-05-05 11:12:15
Message-ID: Pine.LNX.4.21.0305051210111.32480-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Mon, 5 May 2003, Ramon Alonso Allende wrote:

> Hi I am using postgres 7.3 in macos X and i am not able to insert a
> file into a table all i see is the following error
>
> insert into archivo (d_id,path) values (1,
> lo_import('/Users/allende/Documents/PDF/Networks/10356399.pdf'));
>
> ERROR: lo_import: can't open unix file
> "/Users/allende/Documents/PDF/Networks/10356399.pdf": Permission denied
>
>
> I have done it as a regular user and as postgres user and still does
> not work.

But does the user the postmaster runs as have permission to read that file? I
would guess not. If you've looked at the file permissions and think it can then
also check the permissions on the directories leading to that file.

--
Nigel J. Andrews

In response to

  • lo_import at 2003-05-05 08:35:19 from Ramon Alonso Allende

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Christoph Haller 2003-05-05 13:06:38 Re: libpq msvc crashing
Previous Message Ramon Alonso Allende 2003-05-05 08:35:19 lo_import