Re: Large Objects - lo_export

From: "tjk(at)tksoft(dot)com" <tjk(at)tksoft(dot)com>
To: pnguruji(at)yahoo(dot)com (Guru Prasad)
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Large Objects - lo_export
Date: 2001-06-06 13:04:32
Message-ID: 200106061304.GAA19076@smtp3.tksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)postgresql(dot)org
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Martín Marqués 2001-06-06 13:21:00 tables, permissions, sequences
Previous Message David BOURIAUD 2001-06-06 10:14:52 Re: How to use the type int2vector ?