I need to insert JSON data from tornado to postgres, so here\'s test like this:
from psycopg2 import connect conn = connect(\"user=\'pguser\' host=\'localho
You didn't commit the transaction.
Psycopg2 opens a transaction automatically, and you must tell it to commit in order to make the data visible to other sessions.
See the psycopg2 FAQ and the connection.commit() method.