pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bt21tanigaway <bt21tanigaway@oss.nttdata.com>
To: Shinya11.Kato@nttdata.com
Cc: masao.fujii@oss.nttdata.com
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented
Date: Mon, 04 Oct 2021 11:17:19 +0900
Message-ID: <d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com> (raw)
In-Reply-To: <TYAPR01MB2896005A7BA10FEDD897B4E3C4AA9@TYAPR01MB2896.jpnprd01.prod.outlook.com>
References: <a322684daa36319e6ebc60b541000a3a@oss.nttdata.com>
	<79967bce-cc80-1941-463b-883bd5606790@oss.nttdata.com>
	<81b150bf40a3dad24fb8674feb07308e@oss.nttdata.com>
	<bf29c936d1ba16d71423bde2ce2d4be1@oss.nttdata.com>
	<TYAPR01MB28966A3AAE20D0A48C9BF41BC4A89@TYAPR01MB2896.jpnprd01.prod.outlook.com>
	<913e1abb8fca30aeb370343d47876a0c@oss.nttdata.com>
	<TYAPR01MB2896005A7BA10FEDD897B4E3C4AA9@TYAPR01MB2896.jpnprd01.prod.outlook.com>

>> 	else if (Matches("LOCK", MatchAny, "IN", "ACCESS|ROW") ||
>> -			 Matches("LOCK", "TABLE", MatchAny, "IN", "ACCESS|ROW"))
>> +			 Matches("LOCK", "TABLE", MatchAny, "IN", "ACCESS|ROW") ||
>> +			 Matches("LOCK", "ONLY", MatchAny, "IN", "ACCESS|ROW") ||
>> +			 Matches("LOCK", "TABLE", "ONLY", MatchAny, "IN", "ACCESS|ROW"))
> I think this code is redundant, so I change following.
> ---
> 	else if (HeadMatches("LOCK") && TailMatches("IN", "ACCESS|ROW"))
> ---
> I created the patch, and attached it. Do you think?
Thank you for update!
I think that your code is more concise than mine.
There seems to be no problem.

Regards,
Koyu Tanigawa






view thread (12+ messages)  latest in thread

Message-ID: <d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com>
Permalink:  ../d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com/
Also on:    postgresql.org/message-id/d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com

 · 

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-hackers@postgresql.org
  Cc: bt21tanigaway@oss.nttdata.com, Shinya11.Kato@nttdata.com, masao.fujii@oss.nttdata.com
  Subject: Re: (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented
  In-Reply-To: <d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com>
  References: <a322684daa36319e6ebc60b541000a3a@oss.nttdata.com> <79967bce-cc80-1941-463b-883bd5606790@oss.nttdata.com> <81b150bf40a3dad24fb8674feb07308e@oss.nttdata.com> <bf29c936d1ba16d71423bde2ce2d4be1@oss.nttdata.com> <TYAPR01MB28966A3AAE20D0A48C9BF41BC4A89@TYAPR01MB2896.jpnprd01.prod.outlook.com> <913e1abb8fca30aeb370343d47876a0c@oss.nttdata.com> <TYAPR01MB2896005A7BA10FEDD897B4E3C4AA9@TYAPR01MB2896.jpnprd01.prod.outlook.com> <d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com>

* 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