-
Notifications
You must be signed in to change notification settings - Fork 35
Synchronous standbys #46
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
…rsions of Postgres
Codecov Report
Continue to review full report at Codecov.
|
@@ -24,3 +24,7 @@ | |||
get_bin_path, \ | |||
get_pg_config, \ | |||
get_pg_version | |||
|
|||
from .standby import \ | |||
First, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO those names are too generic to be exported at top level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think names are ok but should be used with the of module, like standby.First
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ildus I agree.
I think we should replace |
Now we could write
|
self.standbys = standbys | ||
|
||
def __str__(self): | ||
return u"{} ({})".format(self.sync_num, u", ".join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут мне кажется лучше добавить ключевое слово first, чтобы было явно
@@ -24,3 +24,7 @@ | |||
get_bin_path, \ | |||
get_pg_config, \ | |||
get_pg_version | |||
|
|||
from .standby import \ | |||
First, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think names are ok but should be used with the of module, like standby.First
What
A wrapper for synchronous_standby_names server option.
Usage