Inconsistent error message wording for REINDEX CONCURRENTLY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Inconsistent error message wording for REINDEX CONCURRENTLY
Date: 2019-05-02 14:06:42
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

In view of the REINDEX-on-pg_class kerfuffle that we're currently
sorting through, I was very glad to see that the concurrent reindex
code doesn't even try:

regression=# reindex index concurrently pg_class_oid_index;
psql: ERROR: concurrent reindex is not supported for catalog relations
regression=# reindex table concurrently pg_class;
psql: ERROR: concurrent index creation on system catalog tables is not supported

It'd be nice though if those error messages gave the impression of having
been written on the same planet.

(It might be worth comparing wording of other errors-in-common between
what are evidently two completely different code paths...)

regards, tom lane


Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-05-02 14:15:11 Re: Fixing order of resowner cleanup in 12, for Windows
Previous Message Simon Riggs 2019-05-02 14:00:44 Re: walsender vs. XLogBackgroundFlush during shutdown