Large Objects - lo_export - Mailing list pgsql-sql

From Guru Prasad
Subject Large Objects - lo_export
Date
Msg-id Pine.LNX.4.20.0106061832210.785-100000@Larry.bks
Whole thread Raw
Responses Re: Large Objects - lo_export
List pgsql-sql
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
-------------------------------------------------------------------------------






pgsql-sql by date:

Previous
From: Mario Bittencourt
Date:
Subject: Tutorial : using foreign keys, retrictions etc
Next
From: "tjk@tksoft.com"
Date:
Subject: Re: Large Objects - lo_export