Re: Cache lookup failure for pg_restore?

From: "Gellert, Andre" <AGellert(at)ElectronicPartner(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Cache lookup failure for pg_restore?
Date: 2004-05-12 12:24:39
Message-ID: 5CE421247C32BA4EAB74AD3D5E020E280164CEC1@muenchen.ep.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

> Recently, we discover how to avoid problem with OIDs backup/restore
> in tsearch2. Check
> http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/ for
> a little patch (regprocedure_7.4.patch.gz). It won't work on
> existed tsearch2
> installation, though, but will help in future.

I do have the same problem, after reimporting with the correct command
sequence,
with no errors (I edit the schema to get rid of duplicate functions) ,
( AND:
DELETE from pg_ts_dict;
DELETE from pg_ts_parser ;
DELETE from pg_ts_cfg;
DELETE from pg_ts_cfgmap ;
to avoid duplicate keys - that point is missing in the howto ?)

I can connect to the DB , but cannot use the tsquery function e.g. .

Example:
www2=# select set_curcfg('default');
ERROR: cache lookup failed for function 138031386
www2=# select to_tsquery('cd&rohling') ;
ERROR: could not find tsearch config by locale
www2=# select set_curcfg('default');
set_curcfg
------------

(1 row)

www2=# select to_tsquery('cd&rohling') ;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!
---
I think this is the same problem. The patch is for 7.4.[0|1|2] , not 7.4, i
guess.

Is there a chance to rebuild a backup from a DB , which runs tsearch2 with
the unpatched tsearch2-schema ?
My idea: Isn't this a thing to be mentioned in the docs ? Restoring a DB
could be a point :-)

Andre

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2004-05-12 13:49:14 Re: Is Linux 2.6.5 kernel good enough for production?
Previous Message Andrew Sullivan 2004-05-12 11:44:22 Re: vacuumdb is failing with NUMBER OF INDEX TUPLES NOT