Python problem with COPY

From: Hans-Jürgen Schönig <hs(at)cybertec(dot)at>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Python problem with COPY
Date: 2001-06-12 13:52:41
Message-ID: 3B261EA9.7011AFFA@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2001-06-12 18:09:08 Re: remote database queries
Previous Message Hiroshi Inoue 2001-06-12 02:28:00 Re: ODBC problem