diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-05-10 08:18:46 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-05-10 08:18:46 +0900 |
commit | 508300e2e141a9fd87758ce01374c5b0597986fd (patch) | |
tree | 1772248fd66b1fe83e98c0d741c9aa33d0884f29 /src/backend/access/gist/gistsplit.c | |
parent | 24c19e9f66863d83009a370604e40b1eaa71bcdd (diff) | |
download | postgresql-508300e2e141a9fd87758ce01374c5b0597986fd.tar.gz postgresql-508300e2e141a9fd87758ce01374c5b0597986fd.zip |
Improve and fix some error handling for REINDEX INDEX/TABLE CONCURRENTLY
This improves the user experience when it comes to restrict several
flavors of REINDEX CONCURRENTLY. First, for INDEX, remove a restriction
on shared relations as we already check after catalog relations. Then,
for TABLE, add a proper error message when attempting to run the command
on system catalogs. The code path of CREATE INDEX CONCURRENTLY already
complains about that, but if a REINDEX is issued then then the error
generated is confusing.
While on it, add more tests to check restrictions on catalog indexes and
on toast table/index for catalogs. Some error messages are improved,
with wording suggestion coming from Tom Lane.
Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/23694.1556806002@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions