Re: text search configuration missing while migration from 8.3 to 9.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Julie Nishimura <juliezain(at)hotmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: text search configuration missing while migration from 8.3 to 9.4
Date: 2019-04-17 13:46:54
Message-ID: 27924.1555508814@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Julie Nishimura <juliezain(at)hotmail(dot)com> writes:
> Thank you. Is there a way to find out if I have tables with tsvectors or indexes? I have hundreds of tables...

Search the system catalogs. I'd probably do it like this:

select attrelid::regclass, attname from pg_attribute
where atttypid = 'tsvector'::regtype;

but you could also devise some more-portable query involving
the information_schema ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-04-17 14:00:20 Re: text search configuration missing while migration from 8.3 to 9.4
Previous Message Adrian Klaver 2019-04-17 13:46:26 Re: upgrade issue 10 to 11