pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Bartoszewicz <adam.bartoszewicz@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15181: pg_dump - missing schema in CREATE TEXT SEARCH DICTIONARY
Date: Mon, 30 Apr 2018 17:53:34 +0200
Message-ID: <63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com> (raw)
In-Reply-To: <11813.1525102225@sss.pgh.pa.us>
References: <152510057034.19803.9209003918751664295@wrigleys.postgresql.org>
	<11813.1525102225@sss.pgh.pa.us>

You are right. "Dictionary = public.polish_ispell" resolves the problem.
Thank you.
Adam Bartoszewicz


W dniu 2018-04-30 o 17:30, Tom Lane pisze:
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
>> CREATE TEXT SEARCH DICTIONARY polish_thesaurus (
>> 	TEMPLATE = thesaurus,
>> 	DictFile = polish, -- tsearch_data/polish.ths
>> 	Dictionary = polish_ispell
>> );
>> The bug ocurs when I try to dump and reload database structure. 
>> pg_dump creates command with missing schema:
>> CREATE TEXT SEARCH DICTIONARY public.polish_thesaurus (
>>     TEMPLATE = pg_catalog.thesaurus,
>>     dictfile = 'polish', dictionary = 'polish_ispell' );
> Hm.  There is not a lot that pg_dump can do about that: it's really
> a design shortcoming in the thesaurus template, namely that the
> sub-dictionary is referenced by a string rather than by OID.  You could
> break it equally well with "ALTER TEXT SEARCH DICTIONARY polish_ispell
> RENAME ...", or for that matter by trying to use polish_thesaurus in any
> context where you didn't have the public schema in your search path.
>
> I'd recommend explicitly specifying "Dictionary = public.polish_ispell"
> when you create the thesaurus dictionary.
>
> I suppose we should adjust the docs to point out this hazard, as well.
>
> 			regards, tom lane





view thread (3+ messages)

Message-ID: <63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com>
Permalink:  ../63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com/
Also on:    postgresql.org/message-id/63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com

 · 

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: adam.bartoszewicz@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #15181: pg_dump - missing schema in CREATE TEXT SEARCH DICTIONARY
  In-Reply-To: <63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com>
  References: <152510057034.19803.9209003918751664295@wrigleys.postgresql.org> <11813.1525102225@sss.pgh.pa.us> <63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com>

* 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