Skip to content

[#266] OsOperations::build_path is added #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy