forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc166454
committed
Improve error message for database object stats manipulation functions.
Previously, database object statistics manipulation functions likepg_set_relation_stats() reported unclear error and hint messageswhen executed during recovery. These messages were "internal",making it difficult for users to understand the issue: ERROR: cannot acquire lock mode ShareUpdateExclusiveLock on database objects while recovery is in progress HINT: Only RowExclusiveLock or less can be acquired on database objects during recovery.This commit updates the error handling so that, if these functionsare called during recovery, they produce clearer messages: ERROR: recovery is in progress HINT: Statistics cannot be modified during recovery.The related documentation has also been updated to explicitlyclarify that these functions are not available during recovery.Author: Fujii MasaoReviewed-by: Heikki Linnakangas, Maxim OrlovDiscussion:https://postgr.es/m/6d313829-5f56-4a28-ae4b-bd01bf1ae791@oss.nttdata.com1 parenta3699da commitc166454
File tree
3 files changed
+19
-0
lines changed- doc/src/sgml
- src/backend/statistics
3 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30029 | 30029 | | |
30030 | 30030 | | |
30031 | 30031 | | |
| 30032 | + | |
30032 | 30033 | | |
30033 | 30034 | | |
30034 | 30035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
865 | 871 | | |
866 | 872 | | |
867 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
868 | 880 | | |
869 | 881 | | |
870 | 882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
0 commit comments
Comments
(0)