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 1o2iC6-0005JZ-Qp for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jun 2022 23:49:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o2iC5-00053e-NJ for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jun 2022 23:49:33 +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 1o2iC5-00053V-ES for pgsql-hackers@lists.postgresql.org; Sat, 18 Jun 2022 23:49:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2iC3-0000wD-BA for pgsql-hackers@lists.postgresql.org; Sat, 18 Jun 2022 23:49:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 25INnSVT1803868; Sat, 18 Jun 2022 19:49:28 -0400 From: Tom Lane To: Jeff Janes cc: PostgreSQL Hackers Subject: Re: 15beta1 tab completion of extension versions In-reply-to: References: Comments: In-reply-to Jeff Janes message dated "Sat, 18 Jun 2022 14:09:48 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1803866.1655596168.1@sss.pgh.pa.us> Date: Sat, 18 Jun 2022 19:49:28 -0400 Message-ID: <1803867.1655596168@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Janes writes: > Extension version strings need to be quoted. Either double or single > quotes will work. In released psql clients, tab completion offers double > quoted suggestions: > But commit 02b8048ba5 broke that, it now offers unquoted version strings > which if used as offered then lead to syntax errors. Ooops. > The code change seems to have been intentional, but I don't think the > behavior change was intended. Given the comments about it, I'm sure I tested the behavior somewhere along the line --- but I must not have done so with the final logic of _complete_from_query. > Putting pg_catalog.quote_ident back > into Query_for_list_of_available_extension_versions* fixes it, but might > not be the best way to fix it. Yeah, that seems like the appropriate fix. Done, thanks for the report! regards, tom lane