pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Howard News <howardnews@selestial.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Old tsearch functions
Date: Wed, 30 Jan 2019 13:08:48 -0500
Message-ID: <25915.1548871728@sss.pgh.pa.us> (raw)
In-Reply-To: <9bee7649-5b5c-d4fb-85fb-06cd28e2b3a6@selestial.com>
References: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com>
	<010c5d24-f704-3e44-ba5a-1855ecb8e0b3@aklaver.com>
	<9bee7649-5b5c-d4fb-85fb-06cd28e2b3a6@selestial.com>

Howard News <howardnews@selestial.com> writes:
> On 30/01/2019 17:20, Adrian Klaver wrote:
>> Is to late to experiment with dropping the extension on a 9.5 database 
>> and then dumping?

> Not a problem - The problem only shows in development so far. I have all 
> the originals in 9.5 and backups to try this on.

Note that if you had those functions laying around ever since 8.3,
they're probably just "loose" and not wrapped into an extension at all.

You could fix that in a 9.5 database by running

create extension tsearch2 from unpackaged;

which should be enough to collect the relevant objects into an
extension.  At that point you could try doing "drop extension tsearch2".
Likely it'll fail due to dependencies on the extension objects, but
at least the error message will give you an idea of what you need to
fix before you can drop it.  In any case, this certainly beats trying
to manually identify and drop the obsolete types and functions.

You will need to do this in 9.5, or at the latest 9.6, because we
dropped support for that extension in v10.

			regards, tom lane




view thread (7+ messages)  latest in thread

Message-ID: <25915.1548871728@sss.pgh.pa.us>
Permalink:  ../25915.1548871728@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25915.1548871728@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, howardnews@selestial.com, adrian.klaver@aklaver.com
  Subject: Re: Old tsearch functions
  In-Reply-To: <25915.1548871728@sss.pgh.pa.us>
  References: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com> <010c5d24-f704-3e44-ba5a-1855ecb8e0b3@aklaver.com> <9bee7649-5b5c-d4fb-85fb-06cd28e2b3a6@selestial.com> <25915.1548871728@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