Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3CB08B60FEA; Wed, 1 Jun 2011 17:58:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 80369-06; Wed, 1 Jun 2011 20:58:29 +0000 (UTC) X-Greylist: delayed 00:09:33.745802 by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.esilo.com (mail.esilo.com [63.150.152.211]) by mail.postgresql.org (Postfix) with ESMTP id AAC08B60FE6; Wed, 1 Jun 2011 17:58:28 -0300 (ADT) Received: from [10.0.0.2] (fwext-esilo-jupiter.esilo.com [173.162.79.161]) (authenticated bits=0) by mail.esilo.com (8.13.1/8.13.1) with ESMTP id p51Kmp6w007057 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Wed, 1 Jun 2011 16:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=esilo.com; s=200912; t=1306961332; bh=8o0GCw9HNKVFSYx9BZA+86xotpM=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=coKxuTFfYshpBC0j/9OW4B1FQjUzkJoAL9ILqeEXZ9Sk/n5MQOzxZd5Eyu64mJXtQ K6eQdGpl5UKadRZIkBGafcW6+AbNJ4kRESaVVR+Wflistqk3UwEVwxIFBhahvb/HFD 1hgN7QiZkBQ6DZbYXDHeqxKnIq6TCq0U+54jDSK4= DomainKey-Signature: a=rsa-sha1; s=main; d=esilo.com; c=simple; q=dns; b=zEEZymumPFng0pnYpDbw/2drgUsETmx36HZfJr6z6Cb1tGTNP8RbeDJiKrOtBI9U2 EWtw42wFhQXA+9zGkLJYg== Message-ID: <4DE6A5B7.2070700@esilo.com> Date: Wed, 01 Jun 2011 16:48:55 -0400 From: Andrew Chernow User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Pavel Golub CC: Pavel Golub , PostgreSQL Hackers , pgsql-interfaces@postgresql.org Subject: Re: PQdeleteTuple function in libpq References: <147534417.20110601184310@gf.microolap.com> In-Reply-To: <147534417.20110601184310@gf.microolap.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/58 X-Sequence-Number: 188771 On 6/1/2011 11:43 AM, Pavel Golub wrote: > Hello. > > I'm some kind of PQdeleteTuple function will be very usefull in libpq. > Because right now after deleting some record I need refetch result > set, or mark tuple as deleted and this is headache for me. > IMHO, this should be handled by the application. You could track tuples removed in an int[] or copy the result set into an application defined array of C structures. I've always been under the impression that PGresult objects are immutable once delivered to the application. -- Andrew Chernow eSilo, LLC global backup http://www.esilo.com/