X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 908BF329CFB for ; Wed, 15 Sep 2004 02:00:25 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98363-08 for ; Wed, 15 Sep 2004 01:00:13 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 18DF7329CD2 for ; Wed, 15 Sep 2004 02:00:14 +0100 (BST) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 14 Sep 2004 20:53:13 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 14 Sep 2004 20:55:48 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id I425GB00.3KZ for ; Tue, 14 Sep 2004 21:00:11 -0400 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 14 Sep 2004 21:00:11 -0400 Message-Id: <41479417.2080601@us.michelin.com> Date: Tue, 14 Sep 2004 21:00:07 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lothar Behrens Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC SQLSetPos Delete problem References: <200409141837.i8EIbOJ11950@jedi.behrens.de> <414747B6.3090207@us.michelin.com> In-Reply-To: <414747B6.3090207@us.michelin.com> Content-Type: multipart/mixed; boundary="------------050905040808030108010806" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200409/25 X-Sequence-Number: 4400 This is a multi-part message in MIME format. --------------050905040808030108010806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I forgot to mention what may or may not be obvious. A connected recordset is more technically known as a server side cursor. A disconnect recordset is more correctly known as a client side cursor. The client side cursor brings all the records back to the client and establishes a pointer to them. The server side cursor is like an open pointer to a set of records on the server. So not all cursors are equal. Some applications use server side cursors -- probably poorly supported by PostgreSQL. Some applications use client-side cursors with updates not done in against a remote pointer,... but done on with behind the scene SQL statement against rows. So checking for row versioning on the driver set-up can be important. Perhaps you could remind us -- what platform is the application on? What driver are you using to make the connection? What is the server platform? Greg Campbell wrote: > I think you and we need details. > You say the form uses cursors. This suggest to me that maybe you are > trying to update a connected recordset, versus using a disconnected > recordset. I hope this is not talking down to anyone, but a > disconnected recordset is one where you get the records, then the > server can forget about you. A connected recordset is keeping the > connection alive until you are done with your recordset, that is close > your form. > > I have always avoided connected recordsets for client-server > applications. I use disconnected recordset when I want to read data. I > use INSERT, UPDATE, AND DELETE statements (against primary keys and > indexes) when I wish to modify data. > > My understanding is not perfectly clear on this, but I think that the > PostgreSQL driver does not do connected recordsets. But the ODBC > driver may fake it under certain conditions. > It is suggested that there be OIDS on the server table. > It is suggested that the server table have a primary key. > It is suggested that row versioning be turned on in the ODBC driver. > There are conditions where table row uniqueness is forced by the > adding of a timestamp field that defaults to Now(). > So while it may appear to a user that a database table is attached,... > the behind the scenes is a sequence of row fetches, and discrete > insert, update, delete statements that need to find the records to > work on. > > > To this end, and back to those details > > Does your table have OIDS? > Does your table have a primary key? > Have you turned on all the logging you can, client and server to see > what is going on at lower levels? > Are there options in your application wizard regarding connections? (I > doubt we can help you with) > Could you build the application in a different way to separate data > reading transaction from data updating transactions? > > I hope that > 1. I am not completely off the mark > 2. that I have given you something to think about that you did not > already have. > > Good Luck. > > Lothar Behrens wrote: > >> Hi, >> >> it seems that I did not get any help. Now I also like to say, that >> If I test a Sybase Power++ Developer application with simple db form, >> I get a crash in the Postgres ODBC driver. >> >> The form is created with the wizard and uses cursors. >> >> The driver seems to delete the record, but moving to next/prev record >> fails. >> >> Who can help me ? >> >> Do you like to have the source ? >> You can dounload it. >> >> I can try to debug the ODBC library, but I do not understand the full >> source, so I need a little help. >> >> Thanks >> >> Lothar >> ---- My home: www.lollisoft.de ----------------------------- >> Lothar Behrens | Independent: lothar.behrens@gmx.de >> Rosmarinstr 3 | My public project: >> 40235 Düsseldorf | http://sourceforge.net/projects/lbdmf >> | -> Need comments, please visit :-) >> >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 8: explain analyze is your friend >> >> >---------------------------(end of broadcast)--------------------------- >TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > --------------050905040808030108010806 Content-Type: text/x-vcard; charset=utf8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard --------------050905040808030108010806--