Re: Confusing error message for REINDEX TABLE CONCURRENTLY

Поиск
Список
Период
Сортировка
Искать
От
David Rowley
Тема
Re: Confusing error message for REINDEX TABLE CONCURRENTLY
Дата
в 19:04:46
Msg-id
CAKJS1f-HNkfkYm2QpUP4kcK5KO8WwzvsxJ4zGo3HV6-p-WAetA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Confusing error message for REINDEX TABLE CONCURRENTLY Ashwin Agrawal <aagrawal@pivotal.io>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY David Rowley <david.rowley@2ndquadrant.com>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY Michael Paquier <michael@paquier.xyz>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY Ashwin Agrawal <aagrawal@pivotal.io>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY David Rowley <david.rowley@2ndquadrant.com>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY Ashwin Agrawal <aagrawal@pivotal.io>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY Michael Paquier <michael@paquier.xyz>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY Ashwin Agrawal <aagrawal@pivotal.io>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY Michael Paquier <michael@paquier.xyz>
Re: Confusing error message for REINDEX TABLE CONCURRENTLY David Rowley <david.rowley@2ndquadrant.com>
On Tue, 28 May 2019 at 01:23, Ashwin Agrawal  wrote:
> I think we will need to separate out the NOTICE message for concurrent and regular case.
>
> For example this doesn't sound correct
> WARNING:  cannot reindex exclusion constraint index "public.circles_c_excl" concurrently, skipping
> NOTICE:  table "circles" has no indexes to reindex
>
> As no indexes can't be reindexed *concurrently* but there are still indexes which can be reindexed, invalid indexes I think fall in same category.

Swap "can't" for "can" and, yeah. I think it would be good to make the
error messages differ for these two cases. This would serve as a hint
to the user that they might have better luck trying without the
"concurrently" option.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления
От: Thomas Munro
Дата:
Сообщение: Re: Collation versioning
От: Michael Paquier
Дата:
Сообщение: Re: Quick doc typo fix
FAQ