We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7594a7e commit869920cCopy full SHA for 869920c
testgres/node.py
@@ -210,7 +210,7 @@ def source_walsender(self):
210
sql="""
211
select pid
212
from pg_catalog.pg_stat_replication
213
- where application_name =$1
+ where application_name =%s
214
"""
215
216
ifnotself.master:
@@ -322,7 +322,7 @@ def _create_recovery_conf(self, username, slot=None):
322
res=con.execute("""
323
select exists (
324
select from pg_catalog.pg_replication_slots
325
- where slot_name =$1
+ where slot_name =%s
326
)
327
""",slot)
328
@@ -332,7 +332,7 @@ def _create_recovery_conf(self, username, slot=None):
332
333
# TODO: we should drop this slot after replica's cleanup()
334
con.execute("""
335
- select pg_catalog.pg_create_physical_replication_slot($1)
+ select pg_catalog.pg_create_physical_replication_slot(%s)
336
337
338
line+="primary_slot_name={}\n".format(slot)