Re: (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented - Mailing list pgsql-hackers

From bt21tanigaway
Subject Re: (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented
Date
Msg-id d4e33e4f465d67c6e723a7f45eeb1d43@oss.nttdata.com
Whole thread Raw
In response to RE: (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented  (<Shinya11.Kato@nttdata.com>)
Responses Re: (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-hackers
>>     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




pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Skipping logical replication transactions on subscriber side
Next
From: Pavel Stehule
Date:
Subject: Re: Triage on old commitfest entries