[pgpool-hackers: 4454] Fix white spaces in list type configuration parameters

Bo Peng pengbo at sraoss.co.jp
Tue May 7 17:04:52 JST 2024


Currentlly, if the list type configuration parameters 
(e.g. unix_socket_directories, pcp_socket_dir, etc.)
contain white spaces, it may cause startup failure.

For example:

 unix_socket_directories = ' /tmp , /var/run/postgresql '

It will casue the following errors:

  LOG:  create socket files[0]:  /tmp /.s.PGSQL.11000
  FATAL:  failed to bind a socket: " /tmp /.s.PGSQL.11000"
  DETAIL:  bind socket failed with error: "No such file or directory"

The attached patch fixes this issue.

-- 
Bo Peng <pengbo at sraoss.co.jp>
SRA OSS LLC
TEL: 03-5979-2701 FAX: 03-5979-2702
URL: https://www.sraoss.co.jp/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_white_spaces_v1.patch
Type: application/octet-stream
Size: 698 bytes
Desc: not available
URL: <http://www.pgpool.net/pipermail/pgpool-hackers/attachments/20240507/06c6b8cf/attachment.obj>


More information about the pgpool-hackers mailing list