Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5CGJ3E34199 for ; Tue, 12 Jun 2001 12:19:03 -0400 (EDT) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5CDx5E68078 for ; Tue, 12 Jun 2001 09:59:05 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f5CDt9O37934 for pgsql-interfaces@postgresql.org; Tue, 12 Jun 2001 09:55:09 -0400 (EDT) (envelope-from news) From: =?iso-8859-1?Q?Hans=2DJ=FCrgen=20Sch=F6nig?= X-Newsgroups: comp.databases.postgresql.interfaces Subject: Python problem with COPY Date: Tue, 12 Jun 2001 15:52:41 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 16 Message-ID: <3B261EA9.7011AFFA@cybertec.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org X-Mailer: Mozilla 4.77 [de] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en To: pgsql-interfaces@postgresql.org X-Archive-Number: 200106/51 X-Sequence-Number: 1714 #!/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