Replies: 1 comment 2 replies
-
pgcli has been ported to psycopg 3 since your message. I'll hence close this discussion. Thanks again for chiming in and your support here and in the aforementioned pull request (and obviously, in your great work on psycopg), this is much appreciated. :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just dropping a few comments here, after the last messages in #1085, and have a conversation about porting pgcli to pyscopg3.
I've taken a look at pgcli source and the way it interacts with psycopg 2: there will be probably no big problem in porting.
One thing I notice is that you use a green callback so that ctrl-c can interrupt the query. Psycopg 3, in a way, always works in green mode. However there is currently no provision for changing the callback. At the moment Ctrl-C does stop the query, but breaks the connection, leaving in with an open command in progress. This is something that should be probably improved in psycopg 3: psycopg/psycopg#231
Beta Was this translation helpful? Give feedback.
All reactions