Copy_from command to copy values of dictionary in a table
<p>I want to insert values that are stored in a dictionary into a table. This dictionary contains  1000000 values. </p>

<p>The sample of my dictionary is :</p>

<pre><code> mydictationary: {"a":1; "b":2; "c":3; "d":4}
</code></pre>

<p>I am looking forward to use <strong>copy_from</strong> command (psycopg2) to copy these values into a table.
Something like:</p>

<pre><code>cur.copy_from (mydictationary, myTable)
</code></pre>

<p>But is it possible to use copy_from command inorder to copy values from dictionary??? I want to use copy_from command as this might be faster than using sql insert statement.</p>
