Re: group locking: incomplete patch, just for discussion

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: group locking: incomplete patch, just for discussion
Date: 2014-11-20 17:51:56
Message-ID: CA+TgmobQyAmupfE=Fh=VsprR_7Rmadc3T3DORhWOFdz3M9ZjFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 20, 2014 at 12:12 PM, Jeff Davis <pgsql(at)j-davis(dot)com> wrote:
> On Thu, 2014-11-20 at 11:22 -0500, Robert Haas wrote:
>> 2. Propagate pre-existing locks from the user backend to all the workers.
>>
>> I initially proposed #1, but now I think #2 solves more of the
>> problems for less code.
>
> OK. The primary concern with that is unintended consequences. But it's
> reasonable for you to ask for something more concrete. I will think on
> this more.
>
> A few things I'm thinking about now:
>
> * What do you mean by "pre-existing"? Locks existing prior to what
> event? (I don't think that's exactly what you meant.)
> * What's the conceptual difference between granting locks that would
> otherwise conflict with another process in the group (which is what this
> proposal is about) and having exactly the same set of locks? Is there
> any?
> * Let's say you have processes A1 and A2 in one group, and B. A1 and B
> both have an AccessShare lock, and A2 tries to acquire an exclusive
> lock. B is waiting on A2. That's still a deadlock, right?

I think I discussed all of these issues on the other thread already.
Am I wrong?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2014-11-20 18:08:49 Re: Doing better at HINTing an appropriate column within errorMissingColumn()
Previous Message Tom Lane 2014-11-20 17:33:17 Re: T_CustomScan on ExplainTargetRel