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 1nVHrP-0000jo-0R for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Mar 2022 19:02:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nVHrN-00015B-Q6 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Mar 2022 19:02:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nVHrN-00011H-BY for pgsql-hackers@lists.postgresql.org; Fri, 18 Mar 2022 19:02:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nVHrL-00064O-2N for pgsql-hackers@lists.postgresql.org; Fri, 18 Mar 2022 19:02:00 +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 22IJ1u0X1158649; Fri, 18 Mar 2022 15:01:56 -0400 From: Tom Lane To: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= cc: pgsql-hackers@lists.postgresql.org Subject: Re: Tab completion for SET TimeZone In-reply-to: <1157472.1647629584@sss.pgh.pa.us> References: <87k0curq0w.fsf@wibble.ilmari.org> <87h77yrpsu.fsf@wibble.ilmari.org> <514658.1647438049@sss.pgh.pa.us> <87czikrtc1.fsf@wibble.ilmari.org> <87a6dnsgyr.fsf@wibble.ilmari.org> <1157472.1647629584@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 18 Mar 2022 14:53:04 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1158647.1647630116.1@sss.pgh.pa.us> Date: Fri, 18 Mar 2022 15:01:56 -0400 Message-ID: <1158648.1647630116@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ... btw, I forgot to mention that I don't see any problem with the patch's behavior for DEFAULT. What I see with both readline and libedit is that if you type something reasonable, like set timezone to d then it will correctly complete "efault ", without any extra quotes. Now, if you're silly and do set timezone to 'd then readline gives you "efault' " and libedit gives you nothing. But I think that's your own, um, fault. We don't have any other places where tab completion is so aggressive as to remove quotes from a keyword. regards, tom lane