×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Restore problem pg_restore

Restore problem pg_restore

Restore problem pg_restore

(OP)
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
--------------------------------------------------------

RE: Restore problem pg_restore

both of these are contrib extentions

did you install the contribs?

RE: Restore problem pg_restore

(OP)
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

RE: Restore problem pg_restore


>> 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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close