pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julie Nishimura <juliezain@hotmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.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: Wed, 17 Apr 2019 09:46:54 -0400
Message-ID: <27924.1555508814@sss.pgh.pa.us> (raw)
In-Reply-To: <BYAPR08MB5014EAB6A5FD9BE30980C275AC250@BYAPR08MB5014.namprd08.prod.outlook.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>
	<ecc1bb6b-ce9f-d23b-dcf7-fef978f625d7@aklaver.com>
	<BYAPR08MB501478C64BCC8A373A9FF7B5AC240@BYAPR08MB5014.namprd08.prod.outlook.com>
	<e06ea53a-3b09-c23a-08fa-dd2a8443388d@aklaver.com>
	<BYAPR08MB501452C0886111F4197B90A8AC250@BYAPR08MB5014.namprd08.prod.outlook.com>
	<4619.1555476341@sss.pgh.pa.us>
	<BYAPR08MB5014EAB6A5FD9BE30980C275AC250@BYAPR08MB5014.namprd08.prod.outlook.com>

Julie Nishimura <juliezain@hotmail.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





view thread (15+ messages)  latest in thread

Message-ID: <27924.1555508814@sss.pgh.pa.us>
Permalink:  ../27924.1555508814@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27924.1555508814@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, juliezain@hotmail.com, adrian.klaver@aklaver.com
  Subject: Re: text search configuration missing while migration from 8.3 to 9.4
  In-Reply-To: <27924.1555508814@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> <ecc1bb6b-ce9f-d23b-dcf7-fef978f625d7@aklaver.com> <BYAPR08MB501478C64BCC8A373A9FF7B5AC240@BYAPR08MB5014.namprd08.prod.outlook.com> <e06ea53a-3b09-c23a-08fa-dd2a8443388d@aklaver.com> <BYAPR08MB501452C0886111F4197B90A8AC250@BYAPR08MB5014.namprd08.prod.outlook.com> <4619.1555476341@sss.pgh.pa.us> <BYAPR08MB5014EAB6A5FD9BE30980C275AC250@BYAPR08MB5014.namprd08.prod.outlook.com> <27924.1555508814@sss.pgh.pa.us>

* 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