Increase size of bgw_library_name.
authorNathan Bossart <nathan@postgresql.org>
Mon, 3 Jul 2023 22:02:16 +0000 (15:02 -0700)
committerNathan Bossart <nathan@postgresql.org>
Mon, 3 Jul 2023 22:02:16 +0000 (15:02 -0700)
commit957845789bb97dde2cb1ee11c1a769984131adf6
tree90773820c266eac0c99701396ce80f14e46bd990
parent126552c85c1cfb6ce6445159b8024cfa5631f33e
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
doc/src/sgml/bgworker.sgml
src/backend/postmaster/bgworker.c
src/backend/replication/logical/launcher.c
src/include/postmaster/bgworker.h