forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9f67dd1
Fix worker_spi when launching workers without shared_preload_libraries
Currently, the database name to connect is initialized only when themodule is loaded with shared_preload_libraries, causing any call ofworker_spi_launch() to fail if the library is not loaded for a dynamicbgworker launch. Rather than making the GUC defining the database toconnect to a PGC_POSTMASTER, this commit switches worker_spi.database toPGC_SIGHUP, loaded even if the module's library is loaded dynamicallyfor a worker.We have been discussing about the integration of more advanced tests inthis module, with and without shared_preload_libraries set, so thiseases a bit the work planned in this area.No backpatch is done as, while this is a bug, it changes the definitionof worker_spi.database.Author: Masahiro IkedaReviewed-by: Bharath RupireddyDiscussion:https://postgr.es/m/d30d3ea7d21cb7c9e1e3cc47e301f1b6@oss.nttdata.com1 parentb680146 commit9f67dd1
1 file changed
+14
-9
lines changedLines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
283 | 283 |
| |
284 | 284 |
| |
285 | 285 |
| |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
286 | 291 |
| |
287 | 292 |
| |
288 | 293 |
| |
| |||
296 | 301 |
| |
297 | 302 |
| |
298 | 303 |
| |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
299 | 313 |
| |
300 | 314 |
| |
301 | 315 |
| |
| |||
312 | 326 |
| |
313 | 327 |
| |
314 | 328 |
| |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 | 329 |
| |
325 | 330 |
| |
326 | 331 |
| |
|
0 commit comments
Comments
(0)