pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Wooten <kdubb@me.com>
To: Hédi HACHENI <hacheni@kopileft.com>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC and positioned updates
Date: Sat, 26 Dec 2015 07:54:31 -0700
Message-ID: <AD4D45AA-DA82-42FC-9F48-EA1033F1BF0F@me.com> (raw)
In-Reply-To: <567E556F.4020103@kopileft.com>
References: <567D5C7B.3060402@kopileft.com>
	<CAB=Je-F-j-XY6yZCZtcByWkRL+saNJ7rMZXuRovYtp2cP33XqA@mail.gmail.com>
	<567E493D.7050204@kopileft.com>
	<CAB=Je-H6fN7iv_Nt=tJig9krQJoGkxmiOpLZBC-wpzX7GX_4=g@mail.gmail.com>
	<567E4AD8.50403@kopileft.com>
	<CAB=Je-ErHb6_0CUJ1uRn2fnyn01Q0YfVRv5-77sWBt1NLDJfRw@mail.gmail.com>
	<567E556F.4020103@kopileft.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

https://github.com/impossibl/pgjdbc-ng <https://github.com/impossibl/pgjdbc-ng; supports ‘setCursorName’. 

PostgreSQL doesn’t support all capabilities defined for cursors but what you’ve referenced should work.

> On Dec 26, 2015, at 1:53 AM, Hédi HACHENI <hacheni@kopileft.com> wrote:
> 
> Basically we will not perform positioned updates on the hole table data but for a data portion that it would not exceed 30 rows. That's why I said it depends on what table we're going through.
> 
> But we take care about queries performances.
> On 12/26/2015 09:21 AM, Vladimir Sitnikov wrote:
>>> we cannot achieve positioned updates using the JDBC implementation
>> This is "functional requirement"
>> 
>>> All of these parameters depends on what table we're going through
>> Those a "non-functional requirements" (see [1]).
>> You'd better collect NFRs *before* you finalize design and write the code.
>> 
>>> Our main problem is
>> Suppose you somehow achieved "positional updates". What if it turns
>> out to be super-slow? Believe me, there are good reasons for
>> "positional updates" to be super slow.
>> You would have to rewrite the whole thing from scratch to make it fast.
>> 
>> This is why I do not want to help you to shoot into your own foot.
>> 
>> Anyway, pull requests are welcome.
>> 
>> [1]: https://en.wikipedia.org/wiki/Non-functional_requirement
>> 
>> Vladimir
> 
> 
> 
> -- 
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc

view thread (8+ messages)

Message-ID: <AD4D45AA-DA82-42FC-9F48-EA1033F1BF0F@me.com>
Permalink:  ../AD4D45AA-DA82-42FC-9F48-EA1033F1BF0F@me.com/
Also on:    postgresql.org/message-id/AD4D45AA-DA82-42FC-9F48-EA1033F1BF0F@me.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: kdubb@me.com, hacheni@kopileft.com, sitnikov.vladimir@gmail.com
  Subject: Re: JDBC and positioned updates
  In-Reply-To: <AD4D45AA-DA82-42FC-9F48-EA1033F1BF0F@me.com>
  References: <567D5C7B.3060402@kopileft.com> <CAB=Je-F-j-XY6yZCZtcByWkRL+saNJ7rMZXuRovYtp2cP33XqA@mail.gmail.com> <567E493D.7050204@kopileft.com> <CAB=Je-H6fN7iv_Nt=tJig9krQJoGkxmiOpLZBC-wpzX7GX_4=g@mail.gmail.com> <567E4AD8.50403@kopileft.com> <CAB=Je-ErHb6_0CUJ1uRn2fnyn01Q0YfVRv5-77sWBt1NLDJfRw@mail.gmail.com> <567E556F.4020103@kopileft.com> <AD4D45AA-DA82-42FC-9F48-EA1033F1BF0F@me.com>

* 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