Re: pg_restore in debian postgresql 7.3.2-3

Started by Tom Laneabout 23 years ago1 messagesgeneral
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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