Re: error msg when pg_restore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "nuno" <wegein(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: error msg when pg_restore
Date: 2006-08-23 14:50:46
Message-ID: 19176.1156344646@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"nuno" <wegein(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2006-08-23 14:51:33 Re: Majordomo drops multi-line Subject:
Previous Message Michael Fuhr 2006-08-23 14:46:22 Re: pl/R problem