From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: 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: Sat, 08 Oct 2016 01:43:57 -0400
Message-ID: <14354.1475905437@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1LoKN1CpvTifSej+hXfG5ttD=KRf-PSHJNaBbmTRGzMMA@mail.gmail.com>
References: <CANNMO+JkykPUbPzXraZ_oPUeqcUOK1SMo2kjGhLbeQqDL45L2Q@mail.gmail.com>
<CAKJS1f85+qGh_tUKxj-TbTfY9+WabfXrAxP4HvG8-5HsCfpP8Q@mail.gmail.com>
<CAA4eK1LoKN1CpvTifSej+hXfG5ttD=KRf-PSHJNaBbmTRGzMMA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Amit Kapila <amit.kapila16@gmail.com> writes:
> ... So, I think here one
> argument is that we can use error level other than ERROR during worker
> startup, but not sure if that is improvement over current behaviour.
> Certainly, if we are not able to restore any guc, it is better not to
> proceed for execution in worker as I think that can lead to erroneous
> results.
The real problem here, I think, is that this report indicates that it's
possible for a worker to try to execute a query with GUC settings
different from its parent. Which means it could deliver results different
than the parent would get. That's unacceptable.
In Nikolay's report, we get an error because postgresql.conf contains
an invalid value, but what if it had contained a valid value that was
different from the parent session's? That's entirely legit, in case
the file has been edited but the DBA hasn't yet issued SIGHUP.
The mechanism needs to be fixed so that the worker absorbs EXACTLY the
settings that prevail in the parent, no matter what is currently in
postgresql.conf.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, amit.kapila16@gmail.com, david.rowley@2ndquadrant.com, samokhvalov@gmail.com
Subject: Re: Sudden FTS-related error from parallel worker in 9.6
In-Reply-To: <14354.1475905437@sss.pgh.pa.us>
References: <CANNMO+JkykPUbPzXraZ_oPUeqcUOK1SMo2kjGhLbeQqDL45L2Q@mail.gmail.com> <CAKJS1f85+qGh_tUKxj-TbTfY9+WabfXrAxP4HvG8-5HsCfpP8Q@mail.gmail.com> <CAA4eK1LoKN1CpvTifSej+hXfG5ttD=KRf-PSHJNaBbmTRGzMMA@mail.gmail.com> <14354.1475905437@sss.pgh.pa.us>
* 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