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 1hGVya-00089s-JH for pgsql-general@arkaria.postgresql.org; Tue, 16 Apr 2019 21:50:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGVyZ-0001fR-BG for pgsql-general@arkaria.postgresql.org; Tue, 16 Apr 2019 21:50:47 +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 1hGVyZ-0001fG-0t for pgsql-general@lists.postgresql.org; Tue, 16 Apr 2019 21:50:47 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGVyS-0001Nf-Ou for pgsql-general@lists.postgresql.org; Tue, 16 Apr 2019 21:50:46 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8599B221BD; Tue, 16 Apr 2019 17:50:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 16 Apr 2019 17:50:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=p f7MPGfBXEkCm7XOOvZoAq/VyOLhRlO/qrvaDwy5QaM=; b=ZLxHXTZKz58tDr4Iu rM6iNLpqvpOYHxbEUFpEI0efRZ41MtHLsOC4iEiLxygw5MMMpew3I+uePoZm1oo1 6mi+2OIViYEe4I84UFYEX2QCuLDDYnEcW063QOYQh3K6UziWaIH6Cy+jzGo7Nk/g NUar6z7VruDqO5qN5KAdq0RXNtTM6PKh4oqrz/4e+/fMWZxRORodgBzspAy0nnK/ c7E0trhWBXrKlOt5QbsWBpqzoCitZSWuF4hiQZgAUkZQ/sIom8hQCYjJKc4hxHzp b81uz+n63Izv8uv2/vqT1caNdGbDpsz4+zq/0Nk6lFADDH3ugYpRg9Wfu6hfpew/ iLRdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=pf7MPGfBXEkCm7XOOvZoAq/VyOLhRlO/qrvaDwy5Q aM=; b=BKBeTTdkGuwQXJqRyXpNbLG7WCuur/C2ksD/8pOvKKnIiYBRwwOQGdo3k w+tojeM6TPNRf/vYqhQ0SGbUK47Q0QT33h13uj2UDFoG0Agfw5nUapM8OtTQUtyk V2V3ZW8ewG2naLcVRH471w8DSe85kJCKpc9HyFP3nCfKyofJQYdBe6p2Ox89D64X JUtgiun4RYd0JXSHNwNzp1Y9QvNkApeVM1fVESpa6qD+ESo+MgpBjKcP3VdbK/2S IHfZE42y7AJOi8EqtvvygYr/II3U1B0+2n6O9QLqMsp+xrLh1FbR5t18GM2mX3Jb G/esYF/5U6oRL2f3NnyeorDobmnsw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfedvgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 41509E409D; Tue, 16 Apr 2019 17:50:38 -0400 (EDT) Subject: Re: text search configuration missing while migration from 8.3 to 9.4 To: Tom Lane , Julie Nishimura Cc: "pgsql-general@lists.postgresql.org" References: <560677b5-53d7-145b-79ee-2c25b490842b@aklaver.com> <17643.1555451180@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <5c624945-2f1c-8bd4-c0b4-dd06e66c341e@aklaver.com> Date: Tue, 16 Apr 2019 14:50:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <17643.1555451180@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/16/19 2:46 PM, Tom Lane wrote: > Julie Nishimura 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