Python problem with COPY - Mailing list pgsql-interfaces

From Hans-Jürgen Schönig
Subject Python problem with COPY
Date
Msg-id 3B261EA9.7011AFFA@cybertec.at
Whole thread Raw
List pgsql-interfaces
#!/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



pgsql-interfaces by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: How to determine PRIMARY KEYS
Next
From: "David Wall"
Date:
Subject: Re: [GENERAL] Vacuum analyze in 7.1.1