Closed ponvenkates closed 3 years ago
Yesterday the new version of psycopg2 was released, it seems that autocommit = True
is ignored in the with connection
block: https://github.com/psycopg/psycopg2/commit/e5ad0ab2d91310ac8e3fff534311a135502fff61
I can suggest to stick with psycopg2==2.8.6 for now.
@CyberDem0n Spot on. That solves my problem, Thanks a lot. Much appreciated. I will close the bug.
Hello. with connection
is documented as a way to start a transaction. On autocommit transactions, it was a no-op operation (the connection is not closed at the end of the with block), but that was a design error.
If you need an autocommit transaction you shouldn't use with
.
Describe the bug We are using an in-house docker image with base PostgreSQL image from bitnami + pip3 installtion of Patroni
pip3 install patroni==2.0.2
. These are the same versions that was working as expected in previous builds (even last week). Today I rebuild the same image as it is (without any change) and it breaks the cluster completely, i rollback to my previously tag (which technically should be the same) and everything works fine. Not sure if this is indeed an issue with patroni, but raising it here hoping I could get some pointers, also this is an unhandled exception, may be I could be of some help (if any) to the developers to handle the exception in future releases.Patroni is encountering an internal error in PostgreSQL when trying to get the timelines
cannot execute SQL commands in WAL sender for physical replication
and due to that (i guess) there's a type error encountered. At the end, the cluster is left with no leader and all nodes reporting the same errors repeatedly.Screen shots
Environment
Patroni configuration file
patronictl show-config
Have you checked Patroni logs?
Have you checked PostgreSQL logs? In the logs above
Have you tried to use GitHub issue search? Yes, no luck.