Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDB7Y-0001ER-IP for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Apr 2018 15:53:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fDB7W-0005Rp-Tl for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Apr 2018 15:53:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDB7W-0005Rg-HY for pgsql-bugs@lists.postgresql.org; Mon, 30 Apr 2018 15:53:42 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fDB7T-0001bp-M0 for pgsql-bugs@lists.postgresql.org; Mon, 30 Apr 2018 15:53:41 +0000 Received: by mail-lf0-x241.google.com with SMTP id h197-v6so12758977lfg.11 for ; Mon, 30 Apr 2018 08:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=3dOwloo7KSV9UUnp+P7zsNOEAa/EyvFhMPqBSwQvrI0=; b=HIDTvoEjARoJ/qoyF8cWxjrvQRmwr9gUedlKpu7Ogb5IP/61Gq69l0dQRDJy+23nPu utMd09MEFboYV5Eo5vI681+T020wkt+Wwd23LWkD1kX7cs2qmE2EGiYy+0CUHq0qPLlG XFChwHuZKL3wxMdTYDZI5JtRRibmpXB4kHEKhKrVDT3Oe/tmTqDIqoxbyQ1WW1vs5AII W442KmtH+RdEMn7mrvxSjmKqwRfQCrXBIQ5zQRdDdORb60Anx4DkeARZIS0dhAvlofl+ 5291jhHIidIMSZRVGAniD5pdwJWMWhxZkq60GudB3vLdh0pOi/op1WdBTlFPd0oAasmd aLzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=3dOwloo7KSV9UUnp+P7zsNOEAa/EyvFhMPqBSwQvrI0=; b=Lcn1LQNffW8d/29TYk1otenof95Zxs3ZlOPnBWtuDfoZls+6YfwO/aIqBjEB18uOE2 ZV9vncq2+0FtGKv11IBYt9Q3y/W1KB6QRV+E/GZ43aXBOXKIpzDgLhaQJmep1LpuDTdQ RAiOMAb+A8lQDfuaqnXZxmOf2FQ1OUSGgRi3xcePOBnapbeJYWZOckJissq3RcacjID4 K0rgMnMTPqiZc1Y7Qte0XQhukJlSoGzJI0riNKiMz9DqoIRSWt5O28LarUW1emsc+Tef ltM6jQdeNIDZ+p8K1UJMuw16BJB1++khm0wjuuAjSRd5vG5BOAaZupX8D0b+Gsw4X3NY bT7g== X-Gm-Message-State: ALQs6tAnvdQfLIFBVNmNiLOU4HeFM4yRqSaffjVTSylUnKkXGp73Wvkf XUnGeIXCKJiQBpuqDhAZkIp+IXa/ X-Google-Smtp-Source: AB8JxZp/Ff8fFSV34dHJw1yCPEvw1uoD17nnaaODNz10huiD9Qw1Fd9BLDjMNSithrPxwXZXdZSl+g== X-Received: by 2002:a2e:3503:: with SMTP id z3-v6mr1958817ljz.95.1525103615395; Mon, 30 Apr 2018 08:53:35 -0700 (PDT) Received: from [192.168.1.107] (user-164-126-234-29.play-internet.pl. [164.126.234.29]) by smtp.gmail.com with ESMTPSA id w21-v6sm668782ljd.97.2018.04.30.08.53.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Apr 2018 08:53:34 -0700 (PDT) Subject: Re: BUG #15181: pg_dump - missing schema in CREATE TEXT SEARCH DICTIONARY To: Tom Lane Cc: pgsql-bugs@lists.postgresql.org References: <152510057034.19803.9209003918751664295@wrigleys.postgresql.org> <11813.1525102225@sss.pgh.pa.us> From: Adam Bartoszewicz Message-ID: <63d6eb96-844d-4d86-a46b-c19119b48bad@gmail.com> Date: Mon, 30 Apr 2018 17:53:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <11813.1525102225@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: pl List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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?= 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