Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 16E27475D64 for ; Wed, 2 Oct 2002 08:58:48 -0400 (EDT) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by postgresql.org (Postfix) with ESMTP id 051F94758F1 for ; Wed, 2 Oct 2002 08:58:47 -0400 (EDT) Received: from there (62.98.1.221) by smtp3.libero.it (6.5.028) id 3D8B3EFF0052DB90 for pgsql-interfaces@postgresql.org; Wed, 2 Oct 2002 14:58:47 +0200 Content-Type: text/plain; charset="iso-8859-15" From: Dorian Tessore To: pgsql-interfaces@postgresql.org Subject: Number of deleted rows in Python module Date: Wed, 2 Oct 2002 14:59:27 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20021002125847.051F94758F1@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/6 X-Sequence-Number: 3168 Hi every body, It's the first time that I post to this list, so please excuse me if the question is not in the right list. My SW: Python 1.5.2; pgsql/v7.1.3; RedHat 7.2 My question: Is there a way of knowing how many rows have been deleted or updated when sending a query from a python script to pgsql. Normally I use : db = pg.connect( ...) res=db.query("delete from mytable") But now I don't know how many rows have been deleted. (The function res.ntuples() works only for a select statement) Can anybody help me? Thank you Dorian