pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bossart, Nathan <bossartn@amazon.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: sulamul@gmail.com <sulamul@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: inefficient loop in StandbyReleaseLockList()
Date: Thu, 28 Oct 2021 19:24:08 -0400
Message-ID: <565036.1635463448@sss.pgh.pa.us> (raw)
In-Reply-To: <B4C04240-1AAC-4200-9636-BCC7984688D8@amazon.com>
References: <CD2F0E7F-9822-45EC-A411-AE56F14DEA9F@amazon.com>
	<CAAJ_b94_awY-VfbLbzxm4zNni3NXxG3wrSkSgnHyCDqHnT+eJg@mail.gmail.com>
	<20211028.155751.1898631306946946681.horikyota.ntt@gmail.com>
	<20211028220748.6ekrl74minwq75f4@alap3.anarazel.de>
	<20211028221424.6wtcse3qkbf2cmqo@alap3.anarazel.de>
	<560364.1635459891@sss.pgh.pa.us>
	<B4C04240-1AAC-4200-9636-BCC7984688D8@amazon.com>

"Bossart, Nathan" <bossartn@amazon.com> writes:
> On 10/28/21, 3:25 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>> Does it matter what order we're releasing the locks in?

> I'm not seeing anything that indicates the ordering matters.  AFAICT
> either approach would work in this case.  IMO changing the order is
> scarier than switching to foreach(), though.

Yeah, that was my feeling...

			regards, tom lane





view thread (41+ messages)  latest in thread

Message-ID: <565036.1635463448@sss.pgh.pa.us>
Permalink:  ../565036.1635463448@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/565036.1635463448@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bossartn@amazon.com, andres@anarazel.de, horikyota.ntt@gmail.com, sulamul@gmail.com
  Subject: Re: inefficient loop in StandbyReleaseLockList()
  In-Reply-To: <565036.1635463448@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