pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tjk@tksoft.com <tjk@tksoft.com>
To: pnguruji@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Large Objects - lo_export
Date: Wed, 6 Jun 2001 06:04:32 -0700 (PDT)
Message-ID: <200106061304.GAA19076@smtp3.tksoft.com> (raw)
In-Reply-To: <Pine.LNX.4.20.0106061832210.785-100000@Larry.bks>

You must be logged in as the unix user postgres.
(Presuming /home/postgres/ is writable by postgres and 
the file doesn't exist.)

Try doing 
touch /home/postgres/junk.tgz
from the command line. It should also fail. 


Troy



> 
> 
> Hi to list !
> 
> while running psql as 'postgres' user, i executed the following query.
> 
> 'select lo_export(img.image, '/home/postgres/junk.tgz') from img where
> data = 'tar file';
> 
> The result of the above command is as follows.
> 
> ERROR:  lo_export: can't open unix file
> "/home/postgres/junk.tgz": Permission denied
> 
> i performed the above query as superuser ('postgres'). I hope it' having 
> all the superuser previleges. 
> 
> I am not sure why i am getting the above error. 
> 
> Any one got any clue for it.
> thanx in advance.
> 
> guru.
> bk SYSTEMS (P) Ltd.
>                                                     P . N . G U R U P R A S A D
> -------------------------------------------------------------------------------
> 
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 




view thread (2+ messages)  latest in thread

Message-ID: <200106061304.GAA19076@smtp3.tksoft.com>
Permalink:  ../200106061304.GAA19076@smtp3.tksoft.com/
Also on:    postgresql.org/message-id/200106061304.GAA19076@smtp3.tksoft.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tjk@tksoft.com, pnguruji@yahoo.com
  Subject: Re: Large Objects - lo_export
  In-Reply-To: <200106061304.GAA19076@smtp3.tksoft.com>
  References: <Pine.LNX.4.20.0106061832210.785-100000@Larry.bks> <200106061304.GAA19076@smtp3.tksoft.com>

* 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