forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita903971
committed
Refactor more logic for compilation of regular expressions in hba.c
It happens that the parts of hba.conf that are planned to be extendedto support regular expressions would finish by using the same errormessage as the one used currently for pg_ident.conf when a regularexpression cannot be compiled, as long as the routine centralizing thelogic, regcomp_auth_token(), knows from which file the regexp comes fromand its line location in the so-said file.This change makes the follow-up patches slightly simpler, and the logicremains the same. I suspect that this makes the proposal to add supportfor file inclusions in pg_ident.conf and pg_hba.conf slightly simpler,as well.Extracted from a larger patch by the same author. This is similar tothe refactoring done in fc579e1.Author: Bertrand DrouvotDiscussion:https://postgr.es/m/fff0d7c1-8ad4-76a1-9db3-0ab6ec338bf7@amazon.com1 parent42d01f5 commita903971
1 file changed
+25
-19
lines changedLines changed: 25 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 |
| - | |
| 122 | + | |
| 123 | + | |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
| |||
305 | 306 |
| |
306 | 307 |
| |
307 | 308 |
| |
308 |
| - | |
| 309 | + | |
| 310 | + | |
309 | 311 |
| |
310 | 312 |
| |
311 |
| - | |
| 313 | + | |
| 314 | + | |
312 | 315 |
| |
313 | 316 |
| |
314 | 317 |
| |
| |||
326 | 329 |
| |
327 | 330 |
| |
328 | 331 |
| |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
329 | 348 |
| |
330 | 349 |
| |
331 | 350 |
| |
| |||
2374 | 2393 |
| |
2375 | 2394 |
| |
2376 | 2395 |
| |
2377 |
| - | |
2378 | 2396 |
| |
2379 | 2397 |
| |
2380 | 2398 |
| |
| |||
2410 | 2428 |
| |
2411 | 2429 |
| |
2412 | 2430 |
| |
2413 |
| - | |
2414 |
| - | |
| 2431 | + | |
| 2432 | + | |
2415 | 2433 |
| |
2416 |
| - | |
2417 |
| - | |
2418 |
| - | |
2419 |
| - | |
2420 |
| - | |
2421 |
| - | |
2422 |
| - | |
2423 |
| - | |
2424 |
| - | |
2425 |
| - | |
2426 |
| - | |
2427 |
| - | |
2428 |
| - | |
| 2434 | + | |
2429 | 2435 |
| |
2430 | 2436 |
| |
2431 | 2437 |
| |
|
0 commit comments
Comments
(0)