[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.
Cheers,
Brook