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 1n5UCK-0006Uu-Bj for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jan 2022 14:57:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n5UCJ-0006VU-74 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jan 2022 14:56:59 +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 1n5UCI-0006VL-U3 for pgsql-hackers@lists.postgresql.org; Thu, 06 Jan 2022 14:56:58 +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 1n5UCC-0004hQ-CI for pgsql-hackers@lists.postgresql.org; Thu, 06 Jan 2022 14:56:58 +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 206Euaju1068531; Thu, 6 Jan 2022 09:56:36 -0500 From: Tom Lane To: Peter Eisentraut cc: "tanghy.fnst@fujitsu.com" , Kyotaro Horiguchi , Laurenz Albe , "smithpb2250@gmail.com" , "david.zhang@highgo.ca" , "pgsql-hackers@lists.postgresql.org" Subject: Re: Support tab completion for upper character inputs in psql In-reply-to: <54bd7839-f463-ef03-f2d2-ccb8184b9b27@enterprisedb.com> References: <20210423.115812.900808736988307020.horikyota.ntt@gmail.com> <80b093ae-88bd-8d8a-68b9-b535a3ab11be@enterprisedb.com> <54bd7839-f463-ef03-f2d2-ccb8184b9b27@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Thu, 06 Jan 2022 08:46:48 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1068529.1641480996.1@sss.pgh.pa.us> Date: Thu, 06 Jan 2022 09:56:36 -0500 Message-ID: <1068530.1641480996@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > So the ordering of the suggested completions is different. I don't know > offhand how that ordering is determined. Perhaps it's dependent on > locale, readline version, or operating system. In any case, we need to > figure this out to make this test stable. I don't think we want to get into the business of trying to make that consistent across different readline/libedit versions. How about adjusting the test case so that only one enum value is to be printed? regards, tom lane