From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Julie Nishimura <juliezain@hotmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: text search configuration missing while migration from 8.3 to 9.4
Date: Tue, 16 Apr 2019 14:50:37 -0700
Message-ID: <5c624945-2f1c-8bd4-c0b4-dd06e66c341e@aklaver.com> (raw)
In-Reply-To: <17643.1555451180@sss.pgh.pa.us>
References: <BYAPR08MB5014F61156E4F828C478DF39AC240@BYAPR08MB5014.namprd08.prod.outlook.com>
<BYAPR08MB501459E049FCFA6CABB88CACAC240@BYAPR08MB5014.namprd08.prod.outlook.com>
<560677b5-53d7-145b-79ee-2c25b490842b@aklaver.com>
<BYAPR08MB50140786DCCBC9FDE7DD0137AC240@BYAPR08MB5014.namprd08.prod.outlook.com>
<17643.1555451180@sss.pgh.pa.us>
On 4/16/19 2:46 PM, Tom Lane wrote:
> Julie Nishimura <juliezain@hotmail.com> writes:
>> 1) This is the 8.3 source:
>> select * from pg_ts_dict;
>> ...
>> english_stem_nostop | 21960 | 10 | 11282 | language = 'english'
>> hwsplit | 21960 | 10 | 22342 |
>> hwsplit_only | 21960 | 10 | 22342 | returnreplaced = 'false', keeporig = '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 perhaps
> 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.
Unfortunately that does not exist in 8.3. I think because CREATE
EXTENSION did not appear until 9.1
>
> regards, tom lane
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, juliezain@hotmail.com
Subject: Re: text search configuration missing while migration from 8.3 to 9.4
In-Reply-To: <5c624945-2f1c-8bd4-c0b4-dd06e66c341e@aklaver.com>
References: <BYAPR08MB5014F61156E4F828C478DF39AC240@BYAPR08MB5014.namprd08.prod.outlook.com> <BYAPR08MB501459E049FCFA6CABB88CACAC240@BYAPR08MB5014.namprd08.prod.outlook.com> <560677b5-53d7-145b-79ee-2c25b490842b@aklaver.com> <BYAPR08MB50140786DCCBC9FDE7DD0137AC240@BYAPR08MB5014.namprd08.prod.outlook.com> <17643.1555451180@sss.pgh.pa.us> <5c624945-2f1c-8bd4-c0b4-dd06e66c341e@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox