Skip to content
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

"sslmode" not recognized in conninfo #733

Open
nagylzs opened this issue Jan 8, 2022 · 1 comment
Open

"sslmode" not recognized in conninfo #733

nagylzs opened this issue Jan 8, 2022 · 1 comment
Assignees

Comments

@nagylzs
Copy link

nagylzs commented Jan 8, 2022

Given this repmgr.conf (repmgr 5.2):

node_id=1
node_name = 'node01'
conninfo = 'host=node01 user=repmgr dbname=repmgr connect_timeout=2'
data_directory = '/opt/postgresql/data'
sslmode = 'require'

The "repmgr primary register" command gives this:

WARNING: the following problems were found in the configuration file:
  sslmode='require': unknown name/value pair provided; ignoring
INFO: connecting to primary database...
INFO: "repmgr" extension is already installed
NOTICE: primary node record (ID: 1) registered

I think that sslmode=require is a valid option, it should be recognized.

@ibarwick ibarwick self-assigned this Jan 10, 2022
@ibarwick
Copy link
Collaborator

This is correct behaviour -sslmode is a libpq connection parameter, not a repmgr configuration item, so you should put it in the conninfo string, e.g:

conninfo = 'host=node01 user=repmgr dbname=repmgr connect_timeout=2 sslmode=require'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants