agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Andrew Chernow <ac@esilo.com>
To: Pavel Golub <pavel@gf.microolap.com>
Cc: Pavel Golub <pavel@microolap.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PQdeleteTuple function in libpq
Date: Wed, 01 Jun 2011 16:48:55 -0400
Message-ID: <4DE6A5B7.2070700@esilo.com> (raw)
In-Reply-To: <147534417.20110601184310@gf.microolap.com>
References: <147534417.20110601184310@gf.microolap.com>

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/



view thread (17+ messages)  latest in thread

Message-ID: <4DE6A5B7.2070700@esilo.com>
Permalink:  ../4DE6A5B7.2070700@esilo.com/
Also on:    postgresql.org/message-id/4DE6A5B7.2070700@esilo.com

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: ac@esilo.com, pavel@gf.microolap.com, pavel@microolap.com, pgsql-hackers@postgresql.org
  Subject: Re: PQdeleteTuple function in libpq
  In-Reply-To: <4DE6A5B7.2070700@esilo.com>

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

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