pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hans-Jürgen Schönig <hs@cybertec.at>
To: pgsql-interfaces@postgresql.org
Subject: Python problem with COPY
Date: Tue, 12 Jun 2001 15:52:41 +0200
Message-ID: <3B261EA9.7011AFFA@cybertec.at> (raw)

#!/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




Message-ID: <3B261EA9.7011AFFA@cybertec.at>
Permalink:  ../3B261EA9.7011AFFA@cybertec.at/
Also on:    postgresql.org/message-id/3B261EA9.7011AFFA@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: hs@cybertec.at
  Subject: Re: Python problem with COPY
  In-Reply-To: <3B261EA9.7011AFFA@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox