Re: [PATCH] Tab completion for VACUUM of partitioned tables

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, Masahiko Sawada <masahiko(dot)sawada(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Tab completion for VACUUM of partitioned tables
Date: 2020-07-30 03:24:33
Message-ID: e867ebc3-b56b-9629-57f6-9d7b965c4eea@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020/07/30 10:46, Michael Paquier wrote:
> On Thu, Jul 30, 2020 at 08:44:26AM +0900, Fujii Masao wrote:
>> Isn't it better to add the comment explaining why toast tables are
>> excluded from the tab completion for vacuum while they are vacuumable?
>
> Sounds sensible, still it does not apply only to vacuum. I would go
> as far as just adding a comment at the beginning of the block for
> schema queries:

Yes, that seems better.
BTW, one thing I think a bit strange is that indexes for toast tables
are included in tab-completion for REINDEX, for example. That is,
"REINDEX INDEX<tab>" displays "pg_toast.", and "REINDEX INDEX pg_toast.<tab>"
displays indexes for toast tables. Maybe it's better to exclude them,
too. But there seems no simple way to do that.
So I'm ok with this current situation.

> "Never include toast tables in any of those queries to avoid
> unnecessary bloat in the completions."
>
>> The patch looks good to me except that.
>
> Indeed. FWIW, I would also adjust the comment on top of
> Query_for_list_of_indexables to not say "index creation", but just
> "supporting indexing" instead.
>
> Fujii-san, perhaps you would prefer taking care of this patch? I am
> fine to do it if you wish.

Of course I'm fine if you work on this patch. So please feel free to do that!

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Pirotte 2020-07-30 03:26:04 Re: Any objections to implementing LogicalDecodeMessageCB for pgoutput?
Previous Message Peter Geoghegan 2020-07-30 02:55:28 Re: PG 13 release notes, first draft