Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVDUv-0003hz-2z for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Sep 2021 13:50:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mVDUu-0005iH-0u for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Sep 2021 13:50:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVDRX-00032h-IC for pgsql-hackers@lists.postgresql.org; Tue, 28 Sep 2021 13:46:47 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVDRQ-0007Xh-F4 for pgsql-hackers@lists.postgresql.org; Tue, 28 Sep 2021 13:46:47 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id 2124360743; Tue, 28 Sep 2021 22:46:35 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 28 Sep 2021 22:46:35 +0900 From: Shinya Kato To: bt21tanigaway Cc: Fujii Masao , pgsql-hackers@lists.postgresql.org, Shinya11.Kato@nttdata.com Subject: =?UTF-8?Q?Re=3A_=28LOCK_TABLE_options=29_=E2=80=9CONLY=E2=80=9D_?= =?UTF-8?Q?and_=E2=80=9CNOWAIT=E2=80=9D_are_not_yet_implemented?= In-Reply-To: References: <79967bce-cc80-1941-463b-883bd5606790@oss.nttdata.com> <81b150bf40a3dad24fb8674feb07308e@oss.nttdata.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: katousnk@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 2021-09-28 17:06 に bt21tanigaway さんは書きました: > 2021-09-28 17:03 に bt21tanigaway さんは書きました: >> 2021-09-28 16:36 に Fujii Masao さんは書きました: >>> On 2021/09/28 16:13, bt21tanigaway wrote: >>>> Hi, >>>> >>>> (LOCK TABLE options) “ONLY” and “NOWAIT” are not yet implemented in >>>> tab-complete. I made a patch for these options. >>> >>> Thanks for the patch! >>> The patch seems to forget to handle the tab-completion for >>> "LOCK ONLY IN". >> >> Thanks for your comment! >> I attach a new patch fixed to this mail. >> >> Regards, >> >> Koyu Tanigawa > > Sorry, I forgot to attach patch file. > "fix-tab-complete2.patch" is fixed! > > Regards, > > Koyu Tanigawa Thank you for your patch. I have two comments. 1. When I executed git apply, an error occured. --- $ git apply ~/Downloads/fix-tab-complete2.patch /home/penguin/Downloads/fix-tab-complete2.patch:14: indent with spaces. COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tables, " UNION SELECT 'TABLE'" " UNION SELECT 'ONLY'"); warning: 1 line adds whitespace errors. --- 2. The command "LOCK TABLE a, b;" can be executed, but tab-completion doesn't work properly. Is it OK? -- Regards, -- Shinya Kato Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION