Skip to content

Conversation

dmitry-lipetsk
Copy link
Collaborator

This thing must be used instead os.path.join(...).

I decided to use the name "build_path' instead "path_join". If you know the better name for this method, please, let me know. Thanks.

LocalOperations uses os.path.join
RemoteOperations uses posixpath.join

We updated:

  • utils.get_bin_path2
  • utils.get_pg_config2
  • utils.get_pg_version2 (note: new restrictions/asserts are added)
  • RemoteOperations::find_executable
  • RemoteOperations::copytree
  • PostgresNode::logs_dir
  • PostgresNode::data_dir
  • PostgresNode::utils_log_file
  • PostgresNode::pg_log_file
  • PostgresNode::_create_recovery_conf
  • PostgresNode::_collect_special_files
  • PostgresNode::default_conf
  • PostgresNode::append_conf
  • PostgresNode::set_auto_conf
  • PostgresNode::upgrade_from
  • PostgresNode::_get_bin_path
  • NodeApp::init
  • NodeApp::make_simple
  • cache.cached_initdb
  • cache.call_initdb
  • NodeBackup.log_file
  • NodeBackup.init
  • NodeBackup._prepare_dir

Patch was tested with probackup2.

This thing must be used instead os.path.join(...).

LocalOperations uses os.path.join
RemoteOperations uses posixpath.join

We updated:
 - utils.get_bin_path2
 - utils.get_pg_config2
 - utils.get_pg_version2 (note: new restrictions/asserts are added)
 - RemoteOperations::find_executable
 - RemoteOperations::copytree
 - PostgresNode::logs_dir
 - PostgresNode::data_dir
 - PostgresNode::utils_log_file
 - PostgresNode::pg_log_file
 - PostgresNode::_create_recovery_conf
 - PostgresNode::_collect_special_files
 - PostgresNode::default_conf
 - PostgresNode::append_conf
 - PostgresNode::set_auto_conf
 - PostgresNode::upgrade_from
 - PostgresNode::_get_bin_path
 - NodeApp::__init__
 - NodeApp::make_simple
 - cache.cached_initdb
 - cache.call_initdb
 - NodeBackup.log_file
 - NodeBackup.__init__
 - NodeBackup._prepare_dir
@dmitry-lipetsk dmitry-lipetsk linked an issue Jun 25, 2025 that may be closed by this pull request
@dmitry-lipetsk dmitry-lipetsk merged commit 9da8981 into postgrespro:master Jun 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OsOperations::build_path is required
1 participant