mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Open connection to self via listen address
This commit is contained in:
@@ -46,7 +46,7 @@ class Postgresql:
|
||||
|
||||
def cursor(self):
|
||||
if not self.cursor_holder:
|
||||
self.conn = psycopg2.connect('postgres://{}/postgres'.format(self.config['connect_address']))
|
||||
self.conn = psycopg2.connect('postgres://{}/postgres'.format(self.config['listen']))
|
||||
self.conn.autocommit = True
|
||||
self.cursor_holder = self.conn.cursor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user