Re: Confusing error message for REINDEX TABLE CONCURRENTLY - Mailing list pgsql-hackers

From Ashwin Agrawal
Subject Re: Confusing error message for REINDEX TABLE CONCURRENTLY
Date
Msg-id CALfoeiso93Xhq+9yndJtmsBdj1sQXTuw56rmdOroZG4yq9TQVw@mail.gmail.com
Whole thread Raw
In response to Re: Confusing error message for REINDEX TABLE CONCURRENTLY  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Confusing error message for REINDEX TABLE CONCURRENTLY  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-hackers

On Sun, May 26, 2019 at 6:43 PM Michael Paquier <michael@paquier.xyz> wrote:
As you mention for reindex_relation() no indexes <=> nothing to do,
still let's not rely on that.  Instead of making the error message
specific to concurrent operations, I would suggest to change it to
"table foo has no indexes to reindex".  What do you think about the
attached?

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.

pgsql-hackers by date:

Previous
From: Alexander Lakhin
Date:
Subject: Re: Fix inconsistencies for v12
Next
From: Alexander Korotkov
Date:
Subject: Support for jsonpath .datetime() method