- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitf106f53
committed
Make invalid primary_slot_name follow standard GUC error reporting.
Previously, if primary_slot_name was set to an invalid slot name andthe configuration file was reloaded, both the postmaster and all otherbackend processes reported a WARNING. With many processes running,this could produce a flood of duplicate messages. The problem was thatthe GUC check hook for primary_slot_name reported errors at WARNINGlevel via ereport().This commit changes the check hook to use GUC_check_errdetail() andGUC_check_errhint() for error reporting. As with other GUC parameters,this causes non-postmaster processes to log the message at DEBUG3,so by default, only the postmaster's message appears in the log file.Backpatch to all supported versions.Author: Fujii Masao <masao.fujii@gmail.com>Reviewed-by: Chao Li <lic@highgo.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>Discussion:https://postgr.es/m/CAHGQGwFud-cvthCTfusBfKHBS6Jj6kdAPTdLWKvP2qjUX6L_wA@mail.gmail.comBackpatch-through: 131 parenta7ab6ce commitf106f53
3 files changed
+58
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
166 | 195 | | |
167 | 196 | | |
168 | 197 | | |
169 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
170 | 202 | | |
171 | 203 | | |
172 | | - | |
| 204 | + | |
| 205 | + | |
173 | 206 | | |
174 | 207 | | |
175 | 208 | | |
176 | 209 | | |
177 | 210 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
182 | 214 | | |
183 | 215 | | |
184 | 216 | | |
185 | 217 | | |
186 | 218 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
191 | 222 | | |
192 | 223 | | |
193 | 224 | | |
| |||
197 | 228 | | |
198 | 229 | | |
199 | 230 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
205 | 234 | | |
206 | 235 | | |
207 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12587 | 12587 | | |
12588 | 12588 | | |
12589 | 12589 | | |
| 12590 | + | |
| 12591 | + | |
| 12592 | + | |
| 12593 | + | |
12590 | 12594 | | |
12591 | | - | |
| 12595 | + | |
| 12596 | + | |
| 12597 | + | |
| 12598 | + | |
| 12599 | + | |
| 12600 | + | |
| 12601 | + | |
12592 | 12602 | | |
| 12603 | + | |
12593 | 12604 | | |
12594 | 12605 | | |
12595 | 12606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
0 commit comments
Comments
(0)