pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Tue, 11 Oct 2016 09:07:45 -0400
Message-ID: <22111.1476191265@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1JL48Q0j75GZzsQqV3yVTgUCJfRkHdSSkf7eUBHO86zcw@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>
	<14354.1475905437@sss.pgh.pa.us>
	<CAA4eK1JquS4_zSiEAPJGNBJ2P-d5iVPM_NFFQHmAQmgngMKBrA@mail.gmail.com>
	<1876.1476114029@sss.pgh.pa.us>
	<CAA4eK1JL48Q0j75GZzsQqV3yVTgUCJfRkHdSSkf7eUBHO86zcw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Amit Kapila <amit.kapila16@gmail.com> writes:
> On Mon, Oct 10, 2016 at 9:10 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> So I guess the question is why in the world are we doing that inside
>> a transaction.

> I think that is required for some of the parameters like
> "session_authorization".  If user has set this for leader backend and
> we want it to be reflected in worker backend, then without starting
> transaction it won't allow (refer check_session_authorization()).

Well, we're going to need to fix that.  Using a transaction here is
basically a bad idea IMO, and the current complaint shows that it
creates its own set of problems.  Pointing at check_session_authorization
is no argument why it should be that way.

Without having consumed any caffeine, I'd wonder whether looking at
the "source" parameter would help resolve matters.

			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



view thread (15+ messages)

Message-ID: <22111.1476191265@sss.pgh.pa.us>
Permalink:  ../22111.1476191265@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22111.1476191265@sss.pgh.pa.us

 · 

reply

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: <22111.1476191265@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> <CAA4eK1JquS4_zSiEAPJGNBJ2P-d5iVPM_NFFQHmAQmgngMKBrA@mail.gmail.com> <1876.1476114029@sss.pgh.pa.us> <CAA4eK1JL48Q0j75GZzsQqV3yVTgUCJfRkHdSSkf7eUBHO86zcw@mail.gmail.com> <22111.1476191265@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