set_session cannot be used inside a transaction in v1.5.0
See original GitHub issueI’ve seen this raised and closed in #646, #652 and #658 but i’m experiencing this in v1.5.0 when using a service (which was working in 1.3.1):
pgcli service=foo_db
I’ve tried pip install psycopg2==2.6.2
and this is returned:
Requirement already satisfied: psycopg2==2.6.2 in /usr/local/lib/python2.7/site-packages
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
set_session cannot be used inside a transaction #646 - GitHub
Just freshly installed pgcli and upon trying to connect to my local postgres database I get: orf@mean-lean-dev-machine:~|⇒ pgcli -d doge ...
Read more >django.db.utils.ProgrammingError: set_session cannot be ...
ProgrammingError : set_session cannot be used inside a transaction. Does any ideas about this error? I am using Django & PostgresDB.
Read more >Follower Reads | CockroachDB Docs
Follower reads are "read-only" operations; you cannot use them in read-write transactions. Tip: Using the SET TRANSACTION statement as shown in the preceding ......
Read more >Package google.spanner.v1
A session can be used to perform transactions that read and/or modify data in a Cloud Spanner database. Sessions are meant to be...
Read more >15.10 - SELECT/SELECT ... INTO (Temporal Forms) - Teradata ...
In a nonsequenced query, the system does not associate any special meaning to the transaction-time column. The query can use the transaction-time column ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you uninstall brew version of pgcli and reinstall it using pip?
Then try again?
Also what is the alias
pgs
set to?Perfect, installing from master works - thanks so much for your help @j-bennet & @amjith!