question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set_session cannot be used inside a transaction in v1.5.0

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amjithcommented, Mar 13, 2017

Can you uninstall brew version of pgcli and reinstall it using pip?

brew remove pgcli
pip install -U pgcli

Then try again?

Also what is the alias pgs set to?

alias pgs
0reactions
jwhitmarshcommented, Mar 14, 2017

Perfect, installing from master works - thanks so much for your help @j-bennet & @amjith!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found