Solved...Re: [GENERAL] Failing lo_import on RH 5.1 -- postgresql-6.3.2 (please help-I'm on my knees..) - Mailing list pgsql-general

From Jeroen Schaap
Subject Solved...Re: [GENERAL] Failing lo_import on RH 5.1 -- postgresql-6.3.2 (please help-I'm on my knees..)
Date
Msg-id 364C4637.9277753C@rulffk.medfac.leidenuniv.nl
Whole thread Raw
In response to Re: [GENERAL] Failing lo_import on RH 5.1 -- postgresql-6.3.2 (please help-I'm on my knees..)  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian wrote:
>
> > Brook Milligan wrote:
> > >
> > >            [jeroen@rulgfu sql]$ psql -f test.sql
> > >            insert into testfile values (lo_import('test.sql'));
> > >            ERROR:  be_lo_import: can't open unix file"test.sql"
> > >
> > > Isn't the problem that the backend expects test.sql to be in the data
> > > directories somewhere?  Try a full path.

> Try this patch.


I found the problem:
RH 5.1 sets the home directories unsearchable by others.
Setting chmod ag+x <home-dir> helped
Full paths are needed.

Thanks a lot everyone!!

And oh... I've applied the patch. Anyone interested in the regression
results?

Jeroen

pgsql-general by date:

Previous
From: Postgres DBA
Date:
Subject: cyrillic recode support
Next
From: "Jeff Hoffmann"
Date:
Subject: Problem with 6.4 and "createdb -D"