- Notifications
You must be signed in to change notification settings - Fork35
Replication slots#41
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
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
0dda2ff
3e5dbec
bc6c302
e2e5a8d
59dbe42
0b4ac3a
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -32,7 +32,8 @@ | ||
RECOVERY_CONF_FILE, \ | ||
PG_LOG_FILE, \ | ||
UTILS_LOG_FILE, \ | ||
PG_PID_FILE, \ | ||
REPLICATION_SLOTS | ||
from .decorators import \ | ||
method_decorator, \ | ||
@@ -208,7 +209,7 @@ def _create_recovery_conf(self, username, slot_name=None): | ||
).format(conninfo) | ||
if slot_name: | ||
line += "primary_slot_name={}\n".format() | ||
self.append_conf(RECOVERY_CONF_FILE, line) | ||
@@ -343,11 +344,14 @@ def get_auth_method(t): | ||
conf.write(u"fsync = off\n") | ||
# yapf: disable | ||
conf.write( | ||
u"log_statement = {}\n" | ||
u"listen_addresses = '{}'\n" | ||
u"port = {}\n" | ||
u"max_replication_slots = {}\n".format(log_statement, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. IMHO There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Agree as well | ||
self.host, | ||
self.port, | ||
REPLICATION_SLOTS)) | ||
# replication-related settings | ||
if allow_streaming: | ||