pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ramon Alonso Allende <allende@gredos.cnb.uam.es>
To: Nigel J. Andrews <nandrews@investsystems.co.uk>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: lo_import
Date: Thu, 08 May 2003 09:15:50 +0200
Message-ID: <3EBA0426.7000001@gredos.cnb.uam.es> (raw)
In-Reply-To: <Pine.LNX.4.21.0305051210111.32480-100000@ponder.fairway2k.co.uk>
References: <Pine.LNX.4.21.0305051210111.32480-100000@ponder.fairway2k.co.uk>

Touche, the directory Documents did not have permissions.


thanks
R.

Nigel J. Andrews wrote:
> 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.
> 
> 

-- 
Ramon Alonso-Allende Erhardt			Tel: 91 585 46 76
Protein Design Group		   		fax: 91 585 45 06
CNB/CSIC Campus U. Autonoma. Cantoblanco  Madrid 28049
http://www.pdg.cnb.uam.es/allende/index.html




view thread (3+ messages)

Message-ID: <3EBA0426.7000001@gredos.cnb.uam.es>
Permalink:  ../3EBA0426.7000001@gredos.cnb.uam.es/
Also on:    postgresql.org/message-id/3EBA0426.7000001@gredos.cnb.uam.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: allende@gredos.cnb.uam.es, nandrews@investsystems.co.uk
  Subject: Re: lo_import
  In-Reply-To: <3EBA0426.7000001@gredos.cnb.uam.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox