Re: BUG #15726: parallel queries failed ERROR: invalid name syntax CONTEXT: parallel worker

From: Daniel Gustafsson <dgustafsson(at)pivotal(dot)io>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, ANASTACIO Tiago <tiago_anastacio(at)yahoo(dot)fr>, Peter Geoghegan <pg(at)bowt(dot)ie>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15726: parallel queries failed ERROR: invalid name syntax CONTEXT: parallel worker
Date: 2019-04-11 11:39:06
Message-ID: 143DC7CF-C2BC-466C-812A-E57D3AEA39EE@pivotal.io
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 11 Apr 2019, at 12:51, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>
> On Thu, Apr 11, 2019 at 8:59 PM Daniel Gustafsson
> <dgustafsson(at)pivotal(dot)io> wrote:
>>> On 2 Apr 2019, at 21:54, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>>> psql: ERROR: invalid name syntax
>>> CONTEXT: while setting parameter "default_text_search_config" to ""
>>> parallel worker
>>
>> This makes it a lot better, but I wonder if it needs even more clarification to
>> be easily understandable by users not familiar with how parallel workers are
>> initiated. I’m thinking we should add “during worker setup” or something
>> similar to make it even clearer, albeit more verbose.
>
> Thanks for the review. How about this?
>
> postgres=# set force_parallel_mode = on;
> SET
> postgres=# select 42;
> psql: ERROR: invalid name syntax
> CONTEXT: while setting parameter "default_text_search_config" to ""
> in a parallel worker process
> parallel worker

Looks good, I think the extra verbosity is worth it to help users.

> I think this is a bug and should be back-patched. Objections?

No objections.

cheers ./daniel

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2019-04-11 12:11:13 Re: BUG #15746: cache lookup failed for function in plpgsql block
Previous Message Thomas Munro 2019-04-11 10:51:54 Re: BUG #15726: parallel queries failed ERROR: invalid name syntax CONTEXT: parallel worker