#!/usr/bin/python
import pg
conn = pg.connect(dbname='mypython', host='localhost', user='hs')
conn.putline('COPY "income" FROM stdin')
conn.putline('name 22 1243')
# conn.putline('\.')
conn.endcopy()
Does anybody know why the script above does nothing?
Hans