diff options
| author | Nathan Bossart | 2023-07-03 22:02:16 +0000 |
|---|---|---|
| committer | Nathan Bossart | 2023-07-03 22:02:16 +0000 |
| commit | 957845789bb97dde2cb1ee11c1a769984131adf6 (patch) | |
| tree | 90773820c266eac0c99701396ce80f14e46bd990 /src/include | |
| parent | 126552c85c1cfb6ce6445159b8024cfa5631f33e (diff) | |
Increase size of bgw_library_name.
This commit increases the size of the bgw_library_name member of
the BackgroundWorker struct from BGW_MAXLEN (96) bytes to MAXPGPATH
(default of 1024) bytes so that it can store longer file names
(e.g., absolute paths).
Author: Yurii Rashkovskii
Reviewed-by: Daniel Gustafsson, Aleksander Alekseev
Discussion: https://postgr.es/m/CA%2BRLCQyjFV5Y8tG5QgUb6gjteL4S3p%2B1gcyqWTqigyM93WZ9Pg%40mail.gmail.com
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/postmaster/bgworker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/postmaster/bgworker.h b/src/include/postmaster/bgworker.h index 845d4498e65..7815507e3dc 100644 --- a/src/include/postmaster/bgworker.h +++ b/src/include/postmaster/bgworker.h @@ -93,7 +93,7 @@ typedef struct BackgroundWorker int bgw_flags; BgWorkerStartTime bgw_start_time; int bgw_restart_time; /* in seconds, or BGW_NEVER_RESTART */ - char bgw_library_name[BGW_MAXLEN]; + char bgw_library_name[MAXPGPATH]; char bgw_function_name[BGW_MAXLEN]; Datum bgw_main_arg; char bgw_extra[BGW_EXTRALEN]; |
