Re: Pb migrating database from Postgres 8.1 to 8.4
От | Tom Lane |
---|---|
Тема | Re: Pb migrating database from Postgres 8.1 to 8.4 |
Дата | |
Msg-id | 17573.1366387780@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Pb migrating database from Postgres 8.1 to 8.4 (Robert Treat <rob@xzilla.net>) |
Ответы |
Re: Pb migrating database from Postgres 8.1 to 8.4
|
Список | pgsql-admin |
Robert Treat <rob@xzilla.net> writes: > On Fri, Apr 19, 2013 at 10:19 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> chanh.tran@free.fr writes: >>> I'm facing pbs trying to migrate my current database from Postgres 8.1 to 8.4. >>> pg_restore: [archiver (db)] could not execute query: ERROR: could not find function "gtsvector_in" in file "/usr/lib64/pgsql/tsearch2.so" >> Looks like you're missing the shared library that underlies tsearch2. >> The other errors seem to be consequences of this one. > It might be cleaner to try and remove the tsearch bits from your > schema dump and get a fresh install of tsearch by itself before > loading in your own schema. Actually, on second look, I think this is expected behavior when trying to update from pre-8.3 text search --- that whole conversion was none too clean. Note the warning in the tsearch2 module documentation about 3. Load the dump data. There will be quite a few errors reported due to failure to recreate the original tsearch2 objects. These errors can be ignored, but this means you cannot restore the dump in a single transaction (eg, you cannot use pg_restore's -1 switch). If you weren't actually using the tsearch2 features before, you might be best advised to uninstall tsearch2 from the old database before you convert. If you were, please read the documentation about text search conversion carefully --- both http://www.postgresql.org/docs/8.4/static/textsearch-migration.html and the contrib/tsearch2 page. regards, tom lane
В списке pgsql-admin по дате отправления: