From: | Shayon Mukherjee <shayonj(at)gmail(dot)com> |
---|---|
To: | Sami Imseih <samimseih(at)gmail(dot)com> |
Cc: | Gurjeet Singh <gurjeet(at)singh(dot)im>, David Rowley <dgrowleyml(at)gmail(dot)com>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: [PATCH] Re: Proposal to Enable/Disable Index using ALTER INDEX |
Date: | 2025-04-07 20:47:56 |
Message-ID: | CANqtF-pgb87qQr94rMeWKsAa2JGBw9Ygo_wH2bzvVZpi4Mnaig@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Apr 7, 2025 at 4:01 PM Sami Imseih <samimseih(at)gmail(dot)com> wrote:
> Thanks for the update!
>
> The changes in v15 look good to me. The patch does need to be rebased,
> and I also think you should add a tab-complete for CREATE INDEX
>
>
> simseih(at)bcd07415af92 postgresql % git diff
> diff --git a/src/bin/psql/tab-complete.in.c
> b/src/bin/psql/tab-complete.in.c
> index 8e2eb50205e..f1853a68ccc 100644
> --- a/src/bin/psql/tab-complete.in.c
> +++ b/src/bin/psql/tab-complete.in.c
> @@ -3434,6 +3434,8 @@ match_previous_words(int pattern_id,
> !TailMatches("POLICY", MatchAny, MatchAny,
> MatchAny, MatchAny, MatchAny) &&
> !TailMatches("FOR", MatchAny, MatchAny, MatchAny))
> COMPLETE_WITH("(");
> + else if (TailMatches("*)"))
> + COMPLETE_WITH("VISIBLE", "INVISIBLE");
>
> /* CREATE OR REPLACE */
> else if (Matches("CREATE", "OR"))
>
> IMO, with the above in place, this patch is RFC.
>
>
>
Thank you Sami, really appreciate it!
Attached v16 with feedback and rebased.
Thanks
Shayon
Attachment | Content-Type | Size |
---|---|---|
v16-0001-Introduce-the-ability-to-set-index-visibility-us.patch | application/x-patch | 85.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2025-04-07 20:54:20 | Re: psql suggestion "select <tab>" offers nothing, can we get functions like "\df <tab>" |
Previous Message | Maksim.Melnikov | 2025-04-07 20:39:23 | Re: sync_standbys_defined read/write race on startup |