pg_restore in debian postgresql 7.3.2-3

Started by Herbert Liechtiabout 23 years ago2 messagesgeneral
Jump to latest
#1Herbert Liechti
Herbert.Liechti@thinx.ch

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

#2Herbert Liechti
Herbert.Liechti@thinx.ch
In reply to: Herbert Liechti (#1)
Re: pg_restore in debian postgresql 7.3.2-3

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~