From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: pg_upgrade fails with missing FTS resources
Date: Fri, 15 Jun 2012 22:27:59 -0400
Message-ID: <9044.1339813679@sss.pgh.pa.us> (raw)
In-Reply-To: <20120616011647.GA26006@momjian.us>
References: <CA+mi_8YONxQyoyWh9Je5gM-kBG1fq-BwfEF_Wbe5xZOP7ThM1g@mail.gmail.com>
<20120616011647.GA26006@momjian.us>
Bruce Momjian <bruce@momjian.us> writes:
> On Fri, Jun 15, 2012 at 04:15:57PM +0100, Daniele Varrazzo wrote:
>> pg_upgrade fails on missing FTS dictionaries requiring external files.
>> --check fails to detect the incompatibility.
> Sure, we can test for that. What system column stores these file names?
Trying to check that on the basis of the system catalog entries seems
quite hopeless. What's in the catalogs is essentially what appears
in the CREATE command, ie
dictfile = 'italian_ispell', afffile = 'italian_ispell', stopwords = 'italian_ispell'
The dictionary template knows which of these options are file names and
which are not, and what filename extension to apply to each option that
is a file name; but you don't.
The closest that I think pg_upgrade could reasonably come is to compare
the contents of the old and new installations' tsearch_data/
directories, and complain about any files present in the former and not
the latter. However, that method seems fraught with opportunities for
false positives: in particular you might complain about some file that
was in the old installation but not actually referenced by any text
search catalog entry.
In the end I'm not sure it's worth it. There are any number of ways
that the restore step can fail, and it's impossible for pg_upgrade
to pre-check for all of them.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, daniele.varrazzo@gmail.com
Subject: Re: pg_upgrade fails with missing FTS resources
In-Reply-To: <9044.1339813679@sss.pgh.pa.us>
References: <CA+mi_8YONxQyoyWh9Je5gM-kBG1fq-BwfEF_Wbe5xZOP7ThM1g@mail.gmail.com> <20120616011647.GA26006@momjian.us> <9044.1339813679@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