Commit 6698a7d
authored
Postgres sixteen version (#1013)
* Add PGDLLEXPORT markings in exported bgworker functions
From postgres version 16 onward it is necessary for exported background worker
functions to be marked PGDLLEXPORT. Otherwise they are not findable by
LookupBackgroundWorkerFunction().
Failing to mark healthcheck entry point functions as such leads to a miss
functioning monitor as the child processes will fail to launch yet the monitor
will be running.
Adding the markings to previous postgres versions does not have any adverse
symptoms. Hence this commit adds them unconditionally.
* Define bgworker type where missing in healthcheck.
The structure member 'bgw_type' is used in various log messages within a
postgres process. When undeclared the log messages are filled with random chars
resulting to unparseable or broken messages.
Additionally by setting 'bgw_type' it is possible to group all healthckeck
workers in a process listing.1 parent f9f4bc5 commit 6698a7d
File tree
3 files changed
+5
-2
lines changed- src/monitor
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
0 commit comments