Re: error msg when pg_restore - Mailing list pgsql-general

From Tom Lane
Subject Re: error msg when pg_restore
Date
Msg-id 19176.1156344646@sss.pgh.pa.us
Whole thread Raw
In response to Re: error msg when pg_restore  ("nuno" <wegein@gmail.com>)
List pgsql-general
"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

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: pl/R problem
Next
From: Erik Jones
Date:
Subject: Re: Majordomo drops multi-line Subject: