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 1oNxHb-0005kN-DS for pgsql-general@arkaria.postgresql.org; Tue, 16 Aug 2022 14:11: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 1oNxHZ-0004NS-Ky for pgsql-general@arkaria.postgresql.org; Tue, 16 Aug 2022 14:11: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 1oNxHZ-0004NI-A1 for pgsql-general@lists.postgresql.org; Tue, 16 Aug 2022 14:11: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 1oNxHW-0001uY-VA for pgsql-general@lists.postgresql.org; Tue, 16 Aug 2022 14:11: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 27GEAtFW1122769; Tue, 16 Aug 2022 10:10:55 -0400 From: Tom Lane To: depesz@depesz.com cc: Ron , pgsql-general@lists.postgresql.org Subject: Re: Would it be possible to add functions to tab-completion in psql? In-reply-to: <20220816140253.GB14225@depesz.com> References: <20220816122849.GC24417@depesz.com> <20220816130114.GA22122@depesz.com> <2bdacb77-c22f-8be5-cbb7-418c1e3eab82@gmail.com> <20220816140253.GB14225@depesz.com> Comments: In-reply-to hubert depesz lubaczewski message dated "Tue, 16 Aug 2022 16:02:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1122767.1660659055.1@sss.pgh.pa.us> Date: Tue, 16 Aug 2022 10:10:55 -0400 Message-ID: <1122768.1660659055@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hubert depesz lubaczewski writes: > I know we can tab-complete relations. But we can't functions. There is nothing principled about assuming that the first word after SELECT is a function name. It'd be even less principled to provide tab completion only for function names beginning with "pg_". So this idea seems like a wart rather than something anybody would think is a nice improvement. regards, tom lane