Re: Sudden FTS-related error from parallel worker in 9.6 - Mailing list pgsql-bugs

From David Rowley
Subject Re: Sudden FTS-related error from parallel worker in 9.6
Date
Msg-id CAKJS1f85+qGh_tUKxj-TbTfY9+WabfXrAxP4HvG8-5HsCfpP8Q@mail.gmail.com
Whole thread Raw
In response to Sudden FTS-related error from parallel worker in 9.6  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
Responses Re: Sudden FTS-related error from parallel worker in 9.6  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
Re: Sudden FTS-related error from parallel worker in 9.6  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-bugs
On 4 October 2016 at 13:38, Nikolay Samokhvalov <samokhvalov@gmail.com> wrote:
> test=# explain analyze select min(ts) from test;
>                                                        QUERY PLAN
>
-------------------------------------------------------------------------------------------------------------------------
>  Aggregate  (cost=226505.45..226505.46 rows=1 width=8) (actual
> time=1460.227..1460.227 rows=1 loops=1)
>    ->  Seq Scan on test  (cost=0.00..201504.76 rows=10000276 width=8)
> (actual time=0.013..697.676 rows=10000000 loops=1)
>  Planning time: 0.098 ms
>  Execution time: 1460.257 ms
> (4 rows)
>
> test=# set max_parallel_workers_per_gather to 8;
> SET
> test=#  explain analyze select min(ts) from test;
> ERROR:  invalid value for parameter "default_text_search_config": "ru"
> CONTEXT:  parallel worker

The reason that you receive this message is that the main process must
serialise all GUC settings into text before passing to the worker
processes, and when the worker receive those serialised settings from
the master, it must apply them so that workers behave the same way as
the main process.

Probably the question here is why is the worker process validating the
GUC when it was not validated when postgresql.conf is loaded

--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-bugs by date:

Previous
From: Marco Colombo
Date:
Subject: Re: BUG #14351: Upsert not working in case of partitioned tables
Next
From: Nikolay Samokhvalov
Date:
Subject: Re: Sudden FTS-related error from parallel worker in 9.6