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 1pFUvq-0004FZ-72 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 06:49:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFUvo-0000Po-Ko for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 06:49:52 +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 1pFUvo-0000Pc-BG for pgsql-hackers@lists.postgresql.org; Wed, 11 Jan 2023 06:49:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFUvm-0000um-3D for pgsql-hackers@lists.postgresql.org; Wed, 11 Jan 2023 06:49:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1DF0A5C0125; Wed, 11 Jan 2023 01:49:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 11 Jan 2023 01:49:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1673419789; x=1673506189; bh=z2kEMaxfoU 9wXlGamw20dztH5dWAq8o7uh4H6iiidCk=; b=CkncOWIDCT6kdsquPUXe8XUHkH VySQmM31tzUs/V1GNwF3VlDxrNwFdZGbdoxB6/YTyJo3bizvkHiyIxSvxfaolFPe +tQP78BsRu/F9+auMPjkviFhM5jNWynZAuOWOqcmjMkhgjS4OJrNrtnN/KCy3xdl mKIOeHtIB4o2+1X9VQ8qUH+OFbCLkOcSeSW1OQ185JALT8BCku2R8VgfPlD1amSo 4MN3v7fYbAIwe3MUqpzdTa32KCtPVvt7CwollAeig7E0uv7i1ZjSe1oYz9gdCYAq uAFbuIPEQOMMShfGebaq0vGoEZeitBH627v5gUaZR7J0OVxUBk62ZpTV8gaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm3; t=1673419789; x=1673506189; bh=z2kEMaxfoU9wXlGamw20dztH5dWA q8o7uh4H6iiidCk=; b=KDOAEVtBPrX1Q/Q2CIFpcOZwK8n6YsZK9Lp1JfP22HKb QOHCTkg+PoMDiyS9nsMxzEzoVBvbI4CB5B496LWz6I82H12oF6cc0ir5OsFaVMKU D1Sd2BvMXX9reyWGBao0P2aFmy+oPy6bAg/+dOBXYpIvTY+22qHju2dAeA+b7F12 FubrSynwK/2ovyxKCAbaNwmwcA5wlbkr/0BHZTF2UQGHXy1SckG30/w/YqukWVXk UwCPjyCJZgVesQcORL3xfFXYPk4Qw+ptua2PniFbEF5cuMnNvdFoxv5I8cC800Rc pmOrIjCfC5dIYaBJisO64QgTFxGXgWdFqkKysWT5DQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrleefgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvg hrnhepteelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdej necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitg hhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Jan 2023 01:49:47 -0500 (EST) Date: Wed, 11 Jan 2023 15:49:44 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: vignesh21@gmail.com, mths.dev@pm.me, pgsql-hackers@lists.postgresql.org Subject: Re: mprove tab completion for ALTER EXTENSION ADD/DROP Message-ID: References: <20230111.121033.1472938035248120882.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fVs67lWxB+m4BC9f" Content-Disposition: inline In-Reply-To: <20230111.121033.1472938035248120882.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --fVs67lWxB+m4BC9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 11, 2023 at 12:10:33PM +0900, Kyotaro Horiguchi wrote: > It suggests the *kinds* of objects that are part of the extension, but > lists the objects of that kind regardless of dependency. I read > Michael suggested (and I agree) to restrict the objects (not kinds) to > actually be a part of the extension. (And not for object kinds.) Yeah, that's what I meant. Now, if Vignesh does not want to extend that, that's fine for me as well at the end on second thought, as this=20 involves much more code for each DROP path depending on the object type involved. Adding the object names after DROP/ADD is useful on its own, and we already have some completion once the object type is specified, so simpler is perhaps just better here. -- Michael --fVs67lWxB+m4BC9f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmO+XAgACgkQnvQgOdby QH1BIQ//WXS9LBBYHudDJrpbze1vsFkbGx4OASqX5ma94V0on7eBWJXDdum6zZH6 +hrQ5ZIVosDc+RbSFKADRoV5l5CI9H7EBIiapVm17CYyCQjIHyuL93sv69AJK6Pk vaTRFpkjPgZmIxLyxcLGGLhhKPeqRIo0QrukK55BD49dZ4Wu3JbOdnbjVisdAPq6 AnSh76G7K6wM9eGtneNrhlMDp/F+8pwbS4DicmUDqNUjQyzFI6I0cXfuTJumiRBo tfAY1c19dlzDhGEpfDFHjRmMTj63/qg65c98n8tth37I5aMeT9I/+SkIz4/nYt47 QohQVfJ2hAAFlEwgBueQu0w3DcD7opnb0Rohrl/fEnf//yQn7H2iddpkqYeYPI81 PQswF9Q5IfH8Ck6zsyCCjDaCiIVeVJSFGpFN51ZgOYZbsVgQZNNbIaKcDZlsmhHa Q9NhR+VwtPPGg9HMpTgwcAS3MsnO98NKXxtEM6r1ZINmWC+ro3BikgO8KsKFStjO HMVkAh6Bs70nUJl8ysP5Tv6fIlv9unBfBnMUTIK1tJttIz86aiS3g8op2zCOSVa6 JkDmh/aCv7Bpl6No2ranMNik4XTs3LJt7MyGuG1x/ZaXEWGPfzL2hdpkeVGgOEOe JRvFoHkGe+ku/gbTKbzjTcTwrrQ55fbNvhJjFa/nphbTnlen7GQ= =jBk2 -----END PGP SIGNATURE----- --fVs67lWxB+m4BC9f--