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 1pFeS0-0005rx-KG for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 16:59:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFeRy-00026A-Hl for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 16:59:42 +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 1pFeRy-000260-6j for pgsql-hackers@lists.postgresql.org; Wed, 11 Jan 2023 16:59:42 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pFeRw-000864-Cl for pgsql-hackers@lists.postgresql.org; Wed, 11 Jan 2023 16:59:41 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-14455716674so16170891fac.7 for ; Wed, 11 Jan 2023 08:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MmPIjLyrYJoNXXLojzijelsP6DOFI/6fEbbkTil2SHE=; b=LIsOdkk3mLmqn8sGKTQctZrC/Ui0YGJ7CXy3hbqekC4xgJvoecHsaPztgsVa3TehxB 4xrlakThwT4PhVZNoSMjCW/didinMqPi5j2CKIusIBt1cz9ugW174pCURgfhXdbSF/Mt +G46fGYQ0ZqbSZwcZvheraq5IWY/ZR4/8cwsUo2oxBBU/8inFn0wzQug5lx/IXzWzgIq JNnNyGdJ8D8wZC8Cz9W2Mfm24Re3wMuygkyLSlxG2Qp09cil/xYIg9eCdUpjZwPHNfau d/5uWwyhJ9Wh204AKmIumeYcP0o+LHXyu9yOLqwr5v7Mkt3ethCv4dtRXV0VxPKr2LV9 bRwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MmPIjLyrYJoNXXLojzijelsP6DOFI/6fEbbkTil2SHE=; b=uhxQbv0fJSkXHWoLP6PJi/CxrDbnIXJ3cgNfSXLSmvuDm16+aZBNZfHe5eHmoarfKQ NDPktvZUUzs2FbjRRMWm/fb5OrLrCgbO/SNvWPVP/lXU6u6VMaJMsQZZYhqul0wB1+hY GkccFBy4eI13MX+RCY9v9pf4gIRT3TbIqupIIXueIxmy6lUD0sh+zMz0glW1ctPkq2IC YXC9pIEVSJJWD72Detaz785wtwgWmXuqzcH0RHqwmVqGl1PXpyxtgswk3sI0T4pV+2At 4mV2lD6p+UslnHTmErLAYBmBWs084gCGiXvm5EPLO5KFLtLXBazqvsg6uz4wPD2KtP8C eONw== X-Gm-Message-State: AFqh2kofliqtOLQQvAu1C56d3J4MvQnDUo5oZHq1KJSAfknulQDFLZT1 Vm4FvwY5gmRca6BT3vGLWt4lnwGGC1bN6oJDaXe+Rm4JgTk= X-Google-Smtp-Source: AMrXdXuKe6jluF21tD695/xEEKs3lDQBC1GFvsMi67JXuxR5L0QY+koqY4GgOSq8YH61Wbk6gR6hOg3xwTKDzK+Azdo= X-Received: by 2002:a05:6870:82aa:b0:153:b199:10a with SMTP id q42-20020a05687082aa00b00153b199010amr2180894oae.160.1673456378428; Wed, 11 Jan 2023 08:59:38 -0800 (PST) MIME-Version: 1.0 References: <20230111.121033.1472938035248120882.horikyota.ntt@gmail.com> In-Reply-To: From: vignesh C Date: Wed, 11 Jan 2023 22:29:25 +0530 Message-ID: Subject: Re: mprove tab completion for ALTER EXTENSION ADD/DROP To: Michael Paquier Cc: Kyotaro Horiguchi , mths.dev@pm.me, pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 11 Jan 2023 at 12:19, Michael Paquier wrote: > > 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 > 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. I too felt keeping it simpler is better. How about using the simple first version of patch itself? Regards, Vignesh