Thread: pg_restore in debian postgresql 7.3.2-3
I installed the above package on my debian box. The pg_restore command fails with the following error: pg_restore: [archiver (db)] could not execute query: ERROR: stat failed on file '$libdir/plpgsql': No such file or directory my environment ist set to: PGDATA=/var/lib/postgres/data PGLIB=/usr/lib/postgresql/lib POSTGRES_HOME=/var/lib/postgres POSTGRES_LOG=/var/log/postgres.log The plpgsql.so lib is in the $PGLIB directory. Any hints? Thanks & best regards Herbie
Herbert Liechti <herbert.liechti@thinx.ch> writes: > pg_restore: [archiver (db)] could not execute query: ERROR: stat failed on > file '$libdir/plpgsql': No such file or directory > my environment ist set to: > PGDATA=/var/lib/postgres/data > PGLIB=/usr/lib/postgresql/lib > POSTGRES_HOME=/var/lib/postgres > POSTGRES_LOG=/var/log/postgres.log > The plpgsql.so lib is in the $PGLIB directory. AFAIR, Postgres has not paid attention to the PGLIB environment variable for a very long time. (I still have it set too, but only 'cause I haven't gotten round to removing it from ~/.profile ...) "pg_config --pkglibdir" should tell you what $libdir actually resolves as. regards, tom lane
On Thu, 27 Feb 2003, Tom Lane wrote: > Herbert Liechti <herbert.liechti@thinx.ch> writes: > > pg_restore: [archiver (db)] could not execute query: ERROR: stat failed on > > file '$libdir/plpgsql': No such file or directory > > "pg_config --pkglibdir" should tell you what $libdir actually resolves > as. The debian package seems to be a little bit broken. After creating a symlink from /usr/lib/posgresql/lib/plpgsql.so to /usr/lib/postgresql everything is running as expected Thanks & best regards Herbie -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Herbert Liechti http://www.thinx.ch The content management company. Visit http://www.contentx.ch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~