"nuno" <wegein@gmail.com> writes:
> pg_restore: [archiver (db)] could not execute query: ERROR: could not
> access file "$libdir/dbsize": No such file or directory
> Command was: CREATE FUNCTION relation_size(text) RETURNS bigint
> AS '$libdir/dbsize', 'relation_size'
> LANGUAGE c STRICT;
You haven't installed the "dbsize" module, which evidently existed in
your old installation.
[ checks around... ] Actually, dbsize disappeared from contrib in 8.1
because the functions got integrated into the core (some under different
names than before). So you should be able to just ignore those errors,
unless maybe some of your own objects like views depended on them.
In that case you'd have to recreate the view manually with a corrected
definition.
regards, tom lane