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 1oOBgP-0006kw-2J for pgsql-general@arkaria.postgresql.org; Wed, 17 Aug 2022 05:33:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOBgN-00062b-U6 for pgsql-general@arkaria.postgresql.org; Wed, 17 Aug 2022 05:33:35 +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 1oOBgM-00062S-UD for pgsql-general@lists.postgresql.org; Wed, 17 Aug 2022 05:33:35 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOBgJ-0001Kk-5U for pgsql-general@lists.postgresql.org; Wed, 17 Aug 2022 05:33:34 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B86F53200A07; Wed, 17 Aug 2022 01:33:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 17 Aug 2022 01:33:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660714407; x= 1660800807; bh=1w1JQYFmG7BQ4/XuEtdKdGrQbT5hFlJ98BrHkuFJui0=; b=0 v7ahgWqWMsDKlIxLzr71VRQr2PS8fpJTpW1BvZwGXSBR+GbUROZyacc3xmCaNEs6 GcbHtK5h6itzK1nkdW8ZuPwVb0pwFja1Kls+aGvcfWkr+D+YCE3T/FxpDt9tKTYk OexfT8XkRpM+3L4HXGElp3tjlkveKGUV69C4BpSUbPGxr/5EZP3eooir6Elzi4fw 4gf5GTWGUxiWe9LCgiwDppolENseVbZ6OY2poHrAjpeFy2Pm6pYs3UHKijjsLmdJ e4TfMefrWVULjNIQ53j6NNgBMc1FBE+wF5iqdPijlyLUVsdAmYYXwj9sBQKkYWRY LyJt9BoCgQL1SWDAl/Gdw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehhedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrf grthhtvghrnhepheelffeggedujeetiefhleetuddvieffhfffvdejvdffgeejkeduledu heduieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Aug 2022 01:33:26 -0400 (EDT) Message-ID: Date: Wed, 17 Aug 2022 07:33:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Would it be possible to add functions to tab-completion in psql? Content-Language: en-US To: depesz@depesz.com, Tom Lane Cc: Ron , pgsql-general@lists.postgresql.org References: <20220816122849.GC24417@depesz.com> <20220816130114.GA22122@depesz.com> <2bdacb77-c22f-8be5-cbb7-418c1e3eab82@gmail.com> <20220816140253.GB14225@depesz.com> <1122768.1660659055@sss.pgh.pa.us> <20220816141412.GA22751@depesz.com> From: Peter Eisentraut In-Reply-To: <20220816141412.GA22751@depesz.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 16.08.22 16:14, hubert depesz lubaczewski wrote: > Specifically, I'd ask what is the harm of increasing what tab completion > can do by a lot - for example, make it tab-complete fields from all > tables. And make it possible to tab-complete column name anywhere in > where clause. But function name in select would be (for me(!)) great > first step, and I can't really see the drawbacks, aside from using > developer time to work on it. I think in this case it would be straightforward to write a patch and then we can see what the experience is in practice. I agree this could be a useful feature.