pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: 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 21:16:47 -0400
Message-ID: <20120616011647.GA26006@momjian.us> (raw)
In-Reply-To: <CA+mi_8YONxQyoyWh9Je5gM-kBG1fq-BwfEF_Wbe5xZOP7ThM1g@mail.gmail.com>
References: <CA+mi_8YONxQyoyWh9Je5gM-kBG1fq-BwfEF_Wbe5xZOP7ThM1g@mail.gmail.com>

On Fri, Jun 15, 2012 at 04:15:57PM +0100, Daniele Varrazzo wrote:
> Hello,
> 
> pg_upgrade fails on missing FTS dictionaries requiring external files.
> --check fails to detect the incompatibility.
> 
> E.g. after installed italian_fts (http://pgxn.org/dist/italian_fts/)
> into a database, the pg_upgrade_dump_db.sql contains the command:
> 
> CREATE TEXT SEARCH DICTIONARY italian_ispell (
>     TEMPLATE = pg_catalog.ispell,
>     dictfile = 'italian_ispell', afffile = 'italian_ispell', stopwords
> = 'italian_ispell' );
> 
> that fails with a:
> 
> psql:/var/lib/postgresql/pg_upgrade_dump_db.sql:56891: ERROR:  could
> not open dictionary file
> "/usr/share/postgresql/9.1/tsearch_data/italian_ispell.dict": No such
> file or directory
> 
> I think it would be enough to detect the incompatibility at --check
> time, as much as it's done for the required libraries, and only for
> the builtin dict types.
> 
> If you want the issue to be fixed I can try to fix it myself: it seems
> easy enough.

Sure, we can test for that.  What system column stores these file names?
Do we have any other file references in our system tables?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (4+ messages)  latest in thread

Message-ID: <20120616011647.GA26006@momjian.us>
Permalink:  ../20120616011647.GA26006@momjian.us/
Also on:    postgresql.org/message-id/20120616011647.GA26006@momjian.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-bugs@postgresql.org
  Cc: bruce@momjian.us, daniele.varrazzo@gmail.com
  Subject: Re: pg_upgrade fails with missing FTS resources
  In-Reply-To: <20120616011647.GA26006@momjian.us>
  References: <CA+mi_8YONxQyoyWh9Je5gM-kBG1fq-BwfEF_Wbe5xZOP7ThM1g@mail.gmail.com> <20120616011647.GA26006@momjian.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