Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGVuT-0007xc-6w for pgsql-general@arkaria.postgresql.org; Tue, 16 Apr 2019 21:46:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGVuR-0001F2-QX for pgsql-general@arkaria.postgresql.org; Tue, 16 Apr 2019 21:46:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGVuR-0001Er-HF for pgsql-general@lists.postgresql.org; Tue, 16 Apr 2019 21:46:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGVuO-0001HC-Vz for pgsql-general@lists.postgresql.org; Tue, 16 Apr 2019 21:46:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3GLkK8j017644; Tue, 16 Apr 2019 17:46:20 -0400 From: Tom Lane To: Julie Nishimura cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" Subject: Re: text search configuration missing while migration from 8.3 to 9.4 In-reply-to: References: ,<560677b5-53d7-145b-79ee-2c25b490842b@aklaver.com> Comments: In-reply-to Julie Nishimura message dated "Tue, 16 Apr 2019 20:55:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17642.1555451180.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Apr 2019 17:46:20 -0400 Message-ID: <17643.1555451180@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Julie Nishimura writes: > 1) This is the 8.3 source: > select * from pg_ts_dict; > ... > english_stem_nostop | 21960 | 10 | 11282 | langua= ge =3D 'english' > hwsplit | 21960 | 10 | 22342 | > hwsplit_only | 21960 | 10 | 22342 | return= replaced =3D 'false', keeporig =3D 'false' OK, so you have some non-built-in text search objects in your 8.3 installation. That's fine, but the dump/restore process should certainly have included commands to recreate those objects in the new database. Did you ignore any errors during the dump or restore? (Trying to run the restore as a non-superuser could well have led to failure to restore these objects, for instance, but you'd have gotten errors.) Did you perha= ps do a selective dump or restore? (For example, excluding whatever schema 21960 is would've led to excluding these objects.) If you're not real sure about the errors angle, I'd suggest retrying the process to see. You could use "pg_dump -s" to dump only schema not data, so as to make that faster --- any relevant errors should still occur. I'm a bit confused by the initial report, too. If you are missing the text search configuration(s) your application needs, that should lead to query errors, not just things running slower. What exactly is going wrong? > Unfortunately, I am not sure about tsearch2, psql's "\dx" would tell you what extensions are installed in the 8.3 database. regards, tom lane