What is the proper formatting for a jsonb array in Python for Postgres?
问题 I have a schema that looks like Column | Type | ------------------------------------------------------- message_id | integer | user_id | integer | body | text | created_at | timestamp without time zone | source | jsonb | symbols | jsonb[] | I am trying to use psycopg2 to insert data via psycopg2.Cursor.copy_from() but I am getting numerous issues trying to figure out how a jsonb[] object should be formatted. When I do a straight list of JSON objects, I get an error that looks like psycopg2