Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore problem pg_restore

Status
Not open for further replies.

tharas

Programmer
Sep 16, 2006
6
IN
Hai all,

I tried to restore a database dump in PostgreSQL server database server 8.0 to PostgreSQL server database server 8.2 on a Windows 2003 server platform. But it shows the following errors and the restoration completes with these errors ignored.

--------------------------------------------------------
pg_restore: creating FUNCTION gtxtidx_in(cstring)
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 39; 1255 18142 FUNCTION gtxtidx_in(cstring) postgres
pg_restore: [archiver (db)] could not execute query: ERROR: could not access file "$libdir/tsearch": No such file or directory
Command was: CREATE FUNCTION gtxtidx_in(cstring) RETURNS gtxtidx
AS '$libdir/tsearch', 'gtxtidx_in'
LANGUAGE c STRICT;

--------------------------------------------------------
pg_restore: creating FUNCTION isbn_in(cstring)
pg_restore: [archiver (db)] Error from TOC entry 43; 1255 18150 FUNCTION isbn_in(cstring) postgres
pg_restore: [archiver (db)] could not execute query: ERROR: could not access file "$libdir/isbn_issn": No such file or directory
Command was: CREATE FUNCTION isbn_in(cstring) RETURNS isbn
AS '$libdir/isbn_issn', 'isbn_in'
LANGUAGE c STRICT;

---------------------------------------------------------

Similar to tsearch and isbn_issn, it shows the non-existence of some more files. But I could find these files within the
folder
D:\PostgreSQL\lib.

The execution of the command
pg_config --pkglibdir returned the following
D:/POSTGR~2/lib. What does this mean?

How can I set the value of $libdir correctly?

Please reply.

Thanks,

...tharas
--------------------------------------------------------
 
both of these are contrib extentions

did you install the contribs?
 
Hai,

Thanks. I have tried a re-installation of PostgreSQL 8.2 server. And I installed everything that comes as part of the PostgreSQL installer package (postgresql-8.2.msi). Yet I am getting the same error messages while restoring.

regards,

...tharas
 

>> How can I set the value of $libdir correctly?

You can put this in postgresql.conf:

dynamic_library_path = '/some/path'

then restart the server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top