[PATCH v1] Fix tab completion for concurrent materialized view refresh

Поиск
Список
Период
Сортировка
Искать

[PATCH v1] Fix tab completion for concurrent materialized view refresh

От:
Sho Ito <i.sho.0628@gmail.com>
Дата:
Вложения:
Hi,

psql currently suggests `WITH NO DATA` for
`REFRESH MATERIALIZED VIEW CONCURRENTLY`, although the backend rejects
that combination [1].

The attached patch offers only `DATA` after concurrent `WITH` and removes
`DATA` completion after a manually entered concurrent `WITH NO`.
Nonconcurrent refresh completion remains unchanged.

[1] https://github.com/postgres/postgres/blob/8e82d6610e7280d7870c0c36ff1c797e3cfb3e09/src/backend/commands/matview.c#L209-L214

Kind regards,
Sho Ito

--
=======================================
Sho Ito (Sean)

=======================================

Re: [PATCH v1] Fix tab completion for concurrent materialized view refresh

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 13 Oct 2026, at 05:54, Sho Ito  wrote:

> psql currently suggests `WITH NO DATA` for
> `REFRESH MATERIALIZED VIEW CONCURRENTLY`, although the backend rejects
> that combination [1].

Good find, that's indeed incorrect.

> The attached patch offers only `DATA` after concurrent `WITH` and removes
> `DATA` completion after a manually entered concurrent `WITH NO`.
> Nonconcurrent refresh completion remains unchanged.

Thanks, I will apply this with a backpatch all the way down to 14.

--
Daniel Gustafsson



Re: [PATCH v1] Fix tab completion for concurrent materialized view refresh

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 13 Oct 2026, at 09:59, Daniel Gustafsson  wrote:
> 
>> On 13 Oct 2026, at 05:54, Sho Ito  wrote:
> 
>> psql currently suggests `WITH NO DATA` for
>> `REFRESH MATERIALIZED VIEW CONCURRENTLY`, although the backend rejects
>> that combination [1].
> 
> Good find, that's indeed incorrect.
> 
>> The attached patch offers only `DATA` after concurrent `WITH` and removes
>> `DATA` completion after a manually entered concurrent `WITH NO`.
>> Nonconcurrent refresh completion remains unchanged.
> 
> Thanks, I will apply this with a backpatch all the way down to 14.

Done, thanks for the patch!

--
Daniel Gustafsson



FAQ