From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Kevin Grittner <kgrittn(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] SERIALIZABLE with parallel query |
Date: | 2018-06-28 07:55:52 |
Message-ID: | CAD21AoD9+Fjcfm4XtPtOp-wfSB6dZDwHYwbrrqsn_yNYdTYrAg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Mar 30, 2018 at 2:56 PM, Thomas Munro
<thomas(dot)munro(at)enterprisedb(dot)com> wrote:
> On Thu, Mar 8, 2018 at 10:28 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> +SerializableXactHandle
>> +ShareSerializableXact(void)
>> +{
>> + Assert(!IsParallelWorker());
>> +
>> + return MySerializableXact;
>> +}
>>
>> Uh, how's that OK? There's no rule that you can't create a
>> ParallelContext in a worker. Parallel query currently doesn't, so it
>> probably won't happen, but burying an assertion to that effect in the
>> predicate locking code doesn't seem nice.
>
> Hmm. I suppose you could have a PARALLEL SAFE function that itself
> launches parallel workers explicitly (not via parallel query), and
> they should inherit the same SERIALIZABLEXACT from their parent and
> that should all just work.
>
>> Is "sxact" really the best (i.e. clearest) name we can come up with
>> for the lock tranche?
>
> Yeah, needs a better name.
>
> I have some lingering uncertainty about this patch and we're out of
> time, so I moved it to PG12 CF1. Thanks Haribabu, Robert, Amit for
> the reviews and comments so far.
>
I'd like to test and review this patches but they seem to conflict
with current HEAD. Could you please rebase them?
Regards,
--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2018-06-28 08:04:05 | Re: SCRAM with channel binding downgrade attack |
Previous Message | Daniel Gustafsson | 2018-06-28 07:54:35 | Re: Capitalization of the name OpenSSL |