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

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

Merged
funbringer merged 6 commits intopostgrespro:masterfromzilder:repslot
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Set default max_replication_slots number
  • Loading branch information
@zilder
zilder committedMar 13, 2018
commit3e5dbec70ec20a4756ceb301f6e965e0a2e04e8f
3 changes: 3 additions & 0 deletionstestgres/consts.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,3 +24,6 @@
PG_LOG_FILE = "postgresql.log"
UTILS_LOG_FILE = "utils.log"
BACKUP_LOG_FILE = "backup.log"

# default replication slots number
REPLICATION_SLOTS = 10
18 changes: 11 additions & 7 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,7 +32,8 @@
RECOVERY_CONF_FILE, \
PG_LOG_FILE, \
UTILS_LOG_FILE, \
PG_PID_FILE
PG_PID_FILE, \
REPLICATION_SLOTS

from .decorators import \
method_decorator, \
Expand DownExpand Up@@ -208,7 +209,7 @@ def _create_recovery_conf(self, username, slot_name=None):
).format(conninfo)

if slot_name:
line += "primary_slot_name={}".format()
line += "primary_slot_name={}\n".format()

self.append_conf(RECOVERY_CONF_FILE, line)

Expand DownExpand Up@@ -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".format(log_statement,
self.host,
self.port))
conf.write(
u"log_statement = {}\n"
u"listen_addresses = '{}'\n"
u"port = {}\n"
u"max_replication_slots = {}\n".format(log_statement,
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMHOmax_replication_slots should be placed underallow_streaming=True, next tomax_wal_senders etc.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The 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:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp