projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a435440
)
londiste execute: when ddl is already applied, restore db mode
author
Marko Kreen
<markokr@gmail.com>
Tue, 16 Oct 2012 11:51:12 +0000
(14:51 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 16 Oct 2012 11:51:12 +0000
(14:51 +0300)
When doing early exit, the code forgot to set proper mode.
python/londiste/playback.py
patch
|
blob
|
blame
|
history
diff --git
a/python/londiste/playback.py
b/python/londiste/playback.py
index 3fcc47d6cc0f4c9ba8a2be90f66e6efb31a7c174..fddf3b5c86087f8f7b93bc68de6b7d16b77dbd23 100644
(file)
--- a/
python/londiste/playback.py
+++ b/
python/londiste/playback.py
@@
-685,6
+685,8
@@
class Replicator(CascadedWorker):
ret = res[0]['ret_code']
if ret > 200:
self.log.info("Skipping execution of '%s'", fname)
+ if pgver >= 80300:
+ dst_curs.execute("set local session_replication_role = 'replica'")
return
if exec_attrs.need_execute(dst_curs, tbl_map, seq_map):