From: Devrim Gündüz <devrim@gunduz.org>
To: Nikolay Samokhvalov <samokhvalov@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Sudden FTS-related error from parallel worker in 9.6
Date: Tue, 04 Oct 2016 08:37:30 +0300
Message-ID: <1475559450.7078.24.camel@gunduz.org> (raw)
In-Reply-To: <CANNMO+JnuUYhcqiqV9fHmJc8TXu2e3U_PaKPPNq7ZRTQNeagXg@mail.gmail.com>
References: <CANNMO+JkykPUbPzXraZ_oPUeqcUOK1SMo2kjGhLbeQqDL45L2Q@mail.gmail.com>
<1475557075.7078.1.camel@gunduz.org>
<CANNMO+JnuUYhcqiqV9fHmJc8TXu2e3U_PaKPPNq7ZRTQNeagXg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On Tue, 2016-10-04 at 08:13 +0300, Nikolay Samokhvalov wrote:
> No. It's valid for my instance.
> I have manually created configuration called 'ru'. But not in the databases
> 'test'.
I am not 100% familiar with this, but IIRC you need to create this in that
database, too.
I first created the tables as you did, and then:
postgres=# SELECT version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 9.6.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2), 64-bit
(1 row)
postgres=# CREATE TEXT SEARCH CONFIGURATION ru (COPY=russian);
CREATE TEXT SEARCH CONFIGURATION
postgres=# EXPLAIN ANALYZE SELECT min(ts) FROM test;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------
Aggregate (cost=2266.00..2266.01 rows=1 width=8) (actual time=15.740..15.740 rows=1 loops=1)
-> Seq Scan on test (cost=0.00..2016.00 rows=100000 width=8) (actual time=0.006..8.032 rows=100000 loops=1)
Planning time: 0.212 ms
Execution time: 15.782 ms
(4 rows)
postgres=# SET default_text_search_config TO ru;
SET
postgres=# EXPLAIN ANALYZE SELECT min(ts) FROM test;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------
Aggregate (cost=2266.00..2266.01 rows=1 width=8) (actual time=13.292..13.293 rows=1 loops=1)
-> Seq Scan on test (cost=0.00..2016.00 rows=100000 width=8) (actual time=0.009..6.572 rows=100000 loops=1)
Planning time: 0.069 ms
Execution time: 13.317 ms
(4 rows)
postgres=# SET max_parallel_workers_per_gather TO 8;
SET
postgres=# EXPLAIN ANALYZE SELECT min(ts) FROM test;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------
Aggregate (cost=2266.00..2266.01 rows=1 width=8) (actual time=13.701..13.701 rows=1 loops=1)
-> Seq Scan on test (cost=0.00..2016.00 rows=100000 width=8) (actual time=0.009..6.882 rows=100000 loops=1)
Planning time: 0.063 ms
Execution time: 13.722 ms
(4 rows)
postgres=# \c test
You are now connected to database "test" as user "postgres".
test=# SET default_text_search_config TO ru;
ERROR: invalid value for parameter "default_text_search_config": "ru"
-HTH
--
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: devrim@gunduz.org, samokhvalov@gmail.com
Subject: Re: Sudden FTS-related error from parallel worker in 9.6
In-Reply-To: <1475559450.7078.24.camel@gunduz.org>
References: <CANNMO+JkykPUbPzXraZ_oPUeqcUOK1SMo2kjGhLbeQqDL45L2Q@mail.gmail.com> <1475557075.7078.1.camel@gunduz.org> <CANNMO+JnuUYhcqiqV9fHmJc8TXu2e3U_PaKPPNq7ZRTQNeagXg@mail.gmail.com> <1475559450.7078.24.camel@gunduz.org>
* 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