Skip to content

Add pg_upgrade option #97

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

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Add pg_upgrade option #97

merged 1 commit into from
Jan 2, 2024

Conversation

demonolock
Copy link
Contributor

No description provided.

@demonolock demonolock force-pushed the update_node_func branch 5 times, most recently from 17fb333 to 2654ee1 Compare December 20, 2023 10:14
@@ -127,20 +127,23 @@ def __repr__(self):


class PostgresNode(object):
def __init__(self, name=None, port=None, base_dir=None, conn_params: ConnectionParams = ConnectionParams()):
def __init__(self, name=None, port=None, base_dir=None, conn_params: ConnectionParams = ConnectionParams(), bin_dir=None, prefix=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need to change anything with respect to prefix? It only determines the path to the temporary folders used for running tests. Tests are run with the new node only, not with the old one, so the old node should not need temporary folders (and thus its own prefix) at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefix is used as parameter for this structure
self._base_dir = self.os_ops.mkdtemp(prefix=self._prefix or TMP_NODE)
TMP_NODE - is just generated string that hard to read and memorize. Adding the parameter will make tests easer for reading and understanding.

@demonolock demonolock force-pushed the update_node_func branch 3 times, most recently from 248ced6 to 334bb22 Compare January 2, 2024 07:05
@demonolock demonolock merged commit 5218b11 into master Jan 2, 2024
@demonolock demonolock deleted the update_node_func branch January 2, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants