I am running two terminal sessions, in the first one I've opened psql, and in the second one ipython with psycopg2 imported. I'm connected to the same db in both sessions. When I update a table through ipython/psycopg2, psql session queries won't reflect the updates (i.e. I add a row in a table via psycopg2, and psql still fetches no rows). What am I doing wrong?
Postgresql sessions from psql and psycopg2
1.5k Views Asked by Ray P. At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in POSTGRESQL
- Why does adding a JOIN completely modify the query planner behaviour?
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Aggregate and count in PostgreSQL
- Rails HABTM: Select everything a that a record 'has'
- Trigger using data from inserted row
- Select results where joined table contains records with an attribute, but without another
- DB candidate as CouchDB/Schema replacement
- How do I properly add data in SQLAlchemy?
- Postgres in Conda Environment (Ubuntu 14.04)
- How to customize the output of the Postgres Pseudo Encrypt function?
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Why does pg_search prefix not work like I expect?
- extracting meta info from a table psql using information_schema
- How to query a table in the database and copy it's data into one one?
- Update a table using info from a second table and a condition from a third table in Postgresql
Related Questions in PSYCOPG2
- python psycopg2 doesn't update database when using multithreading
- Date Format (pgsql)
- username containing hyphens with psycopg2 running under Anaconda
- Remote connection issues with psycopg2 and postgresql
- How do I add quotation marks/Apostrophe's to column value in psycopg2?
- psycopg2: AttributeError: 'module' object has no attribute 'extras'
- Copying Python data types to Postgres
- Connecting Python/pandas to Redshift when SSL is required
- Postgresql & psycopg2: database does not exist
- psycopg2: How to know when cur.rowcount does not mean number of rows?
- using psycopg2, how do I get "INFO:" lines?
- How to handle NaTs with pandas sqlalchemy and psycopg2
- postgresql data type error when updating from value list with null value
- Accessing large datasets with Python 3.6, psycopg2 and pandas
- Update many rows in a postgres table using psycopg2 and python
Related Questions in PSQL
- Postgresql trimming string up to the first digit
- PSQL Error Level in Batch For Loop
- How to violate duplicate key constraint (Unique_Violation) when updating reference table in PostgreSQL?
- psql max group by just for some columns
- PostgreSQL: MD5 Authentication in pg_hba.conf gives me FATAL: Peer authentication failed for user "postgres"
- psql TypeError: not all arguments converted during string formatting
- How do I make Postgres extension available to non superuser
- DEADLOCK Situation - SQL/Hibernate/Java how to resolve it?
- Rails - Simple Form with Nested Attributes
- FATAL: invalid value for parameter "TimeZone": "Australia/Canberra"
- Rails - PSQL command line query
- How do I dump a database from online server (heroku) to my local environment?
- Using psql options in npgsql
- python 2.6 subprocess enter psql password C shell
- pg_stat_statements enabled, but the table does not exist
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Probably, after executing update you didn't execute
commit()(it makes the changes to the database persistent) on the connection object. See the first example in the docs http://initd.org/psycopg/docs/usage.html