Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTAtg-0001pC-W0 for pgsql-admin@arkaria.postgresql.org; Fri, 19 Apr 2013 12:58:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UTAtg-00072r-4u for pgsql-admin@arkaria.postgresql.org; Fri, 19 Apr 2013 12:58:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTAtf-00072l-5z for pgsql-admin@postgresql.org; Fri, 19 Apr 2013 12:58:35 +0000 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTAta-0008DF-3B for pgsql-admin@postgresql.org; Fri, 19 Apr 2013 12:58:34 +0000 Received: from spooler8-g27.priv.proxad.net (unknown [172.20.243.233]) by smtp5-g21.free.fr (Postfix) with ESMTP id 4D938D48292 for ; Fri, 19 Apr 2013 14:58:24 +0200 (CEST) Date: Fri, 19 Apr 2013 14:58:23 +0200 (CEST) From: chanh.tran@free.fr To: pgsql-admin@postgresql.org Message-ID: <1513898572.54354333.1366376303229.JavaMail.root@spooler8-g27.priv.proxad.net> In-Reply-To: <384628703.54353818.1366376288469.JavaMail.root@spooler8-g27.priv.proxad.net> Subject: Pb migrating database from Postgres 8.1 to 8.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [195.81.226.12] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Win)/7.2.0-GA2598) X-Authenticated-User: chanh.tran@free.fr X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi all, I'm facing pbs trying to migrate my current database from Postgres 8.1 to 8.4. The way I proceed is as 'root' : su - postgres createuser -A -R -d -E my_user createdb --locale C --template template0 --encoding SQL_ASCII my_db tsearch2_sql='/usr/share/pgsql/contrib/tsearch2.sql' psql my_db < $tsearch2_sql pg_restore -d my_db my_db_tar ####################################### Msgs from during 'restore' : pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 79; 1255 16554 FUNCTION gtsvector_in(cstring) postgres pg_restore: [archiver (db)] could not execute query: ERROR: could not find function "gtsvector_in" in file "/usr/lib64/pgsql/tsearch2.so" Command was: CREATE FUNCTION gtsvector_in(cstring) RETURNS gtsvector AS '$libdir/tsearch2', 'gtsvector_in' LANGUAGE c STRICT; pg_restore: [archiver (db)] could not execute query: ERROR: function public.gtsvector_in(cstring) does not exist Command was: ALTER FUNCTION public.gtsvector_in(cstring) OWNER TO postgres; pg_restore: [archiver (db)] Error from TOC entry 80; 1255 16555 FUNCTION gtsvector_out(gtsvector) postgres pg_restore: [archiver (db)] could not execute query: ERROR: could not find function "gtsvector_out" in file "/usr/lib64/pgsql/tsearch2.so" Command was: CREATE FUNCTION gtsvector_out(gtsvector) RETURNS cstring AS '$libdir/tsearch2', 'gtsvector_out' LANGUAGE c STRICT; pg_restore: [archiver (db)] could not execute query: ERROR: function public.gtsvector_out(gtsvector) does not exist Command was: ALTER FUNCTION public.gtsvector_out(gtsvector) OWNER TO postgres; pg_restore: [archiver (db)] Error from TOC entry 350; 1247 16553 TYPE gtsvector postgres pg_restore: [archiver (db)] could not execute query: ERROR: function gtsvector_in(cstring) does not exist Command was: CREATE TYPE gtsvector ( INTERNALLENGTH = variable, INPUT = gtsvector_in, OUTPUT = gtsvector_out, ALIGNMENT =... pg_restore: [archiver (db)] Error from TOC entry 56; 1255 16527 FUNCTION tsquery_in(cstring) postgres pg_restore: [archiver (db)] could not execute query: ERROR: could not find function "tsquery_in" in file "/usr/lib64/pgsql/tsearch2.so" Command was: CREATE FUNCTION tsquery_in(cstring) RETURNS tsquery AS '$libdir/tsearch2', 'tsquery_in' LANGUAGE c STRICT; pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 79; 1255 16554 FUNCTION gtsvector_in(cstring) postgres pg_restore: [archiver (db)] could not execute query: ERROR: could not find function "gtsvector_in" in file "/usr/lib64/pgsql/tsearch2.so" Command was: CREATE FUNCTION gtsvector_in(cstring) RETURNS gtsvector AS '$libdir/tsearch2', 'gtsvector_in' LANGUAGE c STRICT; ............ ######################################## Thx in advance for any help Regards Chanh -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin