Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[#240] Using of node.psql with other host and port#242

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

dmitry-lipetsk
Copy link
Collaborator

@dmitry-lipetskdmitry-lipetsk commentedApr 25, 2025
edited
Loading

This patch adds the support of using other host and port in the following methods:

  • PostgresNode.psql (explicit new args:host andport)
  • PostgresNode.safe_psql (indirectly through**kwargs)

It allows to run psql utility from one PostgreSQL instance to work with another one.

If explicithost andport are not defined (are None), PostgresNode will use own ones.

This patchcloses#240.

When we do not have root __init__.py tests must to import testgres through"import testgres"not through"from <relative_path> import testgres"
This patch adds the support of using other host and port in the following methods:- PostgresNode.psql (explicit new args: host and port)- PostgresNode.safe_psql (indirectly through **kwargs)It allows to run psql utility from one PostgreSQL instance to work with another one.If explicit host and port are not defined (are None), PostgresNode will use own ones.This patchclosespostgrespro#240.
@dmitry-lipetsk
Copy link
CollaboratorAuthor

Patch was tested with probackup2 - ok.

@dmitry-lipetskdmitry-lipetsk merged commit94d7572 intopostgrespro:masterApr 28, 2025
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Run node.psql in a different port
1 participant
@dmitry-lipetsk

[8]ページ先頭

©2009-2025 Movatter.jp