Re: Tsearch2 removal bit me - how to correct?

From: Karl Denninger <karl(at)denninger(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Tsearch2 removal bit me - how to correct?
Date: 2017-10-15 19:49:59
Message-ID: 25ef2548-e569-ba17-5902-5676f8fc62db@denninger.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 10/15/2017 10:47, Tom Lane wrote:
> Karl Denninger <karl(at)denninger(dot)net> writes:
>> Attempting to migrate to 10.0 from 9.6, which has had "tsearch2" loaded
>> for backward compatibility since "forever" (which I suspect is no longer
>> really required as the capability is internal and has been for a long
>> time) results in this blowup logged in loadable_libraries.txt:
>> could not load library "$libdir/tsearch2": ERROR:  could not access file
>> "$libdir/tsearch2": No such file or directory
>> So what's causing this to be requested on startup and how do I kill it? 
> Look for '$libdir/tsearch2' in the pg_proc.probin column of each
> DB in the installation ...
>
> regards, tom lane
That worked on one of my clusters, but on another I'm seeing entries in
pg_catalog, and can't remove them.

pgsql=# \c fapforum
You are now connected to database "fapforum" as user "pgsql".
fapforum=# select proname from pg_proc where probin like '%tsearch2%';
    proname
----------------
 prsd_end
 prsd_lextype
 prsd_start
 thesaurus_init
(4 rows)

fapforum=# \df prsd_end;
                            List of functions
   Schema   |   Name   | Result data type | Argument data types |  Type
------------+----------+------------------+---------------------+--------
 pg_catalog | prsd_end | void             | internal            | normal
(1 row)

fapforum=# drop function prsd_end(internal);
ERROR:  cannot drop function prsd_end(internal) because it is required
by the database system

The others I can drop, but I wind up with these in each database... any
idea where the piece is that the original package stuffed in that I need
to get rid of so I can kill these?

--
Karl Denninger
karl(at)denninger(dot)net <mailto:karl(at)denninger(dot)net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Karl Denninger 2017-10-15 22:00:36 Re: Tsearch2 removal bit me - how to correct?
Previous Message Karl Denninger 2017-10-15 16:10:47 Re: Tsearch2 removal bit me - how to correct?