I\'m using Postgres 9 and Python 2.7.2 along with psycopg2 and am trying to insert an array of string values with properly escaped quotation marks. Sample:
m
If you are going to dump the whole metadata as a string into the table, you can just do:
cur.execute("insert into meta values (%s);", (str(metadata),))