Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aCqF4-0008HY-86 for pgsql-jdbc@arkaria.postgresql.org; Sat, 26 Dec 2015 14:54:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aCqF3-00042r-2u for pgsql-jdbc@arkaria.postgresql.org; Sat, 26 Dec 2015 14:54:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aCqF2-00042f-N2 for pgsql-jdbc@postgresql.org; Sat, 26 Dec 2015 14:54:44 +0000 Received: from st11p05im-asmtp001.me.com ([17.172.109.149]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aCqEw-0006Do-8U for pgsql-jdbc@postgresql.org; Sat, 26 Dec 2015 14:54:42 +0000 Received: from [192.168.100.12] (ip70-176-202-56.ph.ph.cox.net [70.176.202.56]) by st11p05im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0NZZ00T5P02VCL10@st11p05im-asmtp001.me.com> for pgsql-jdbc@postgresql.org; Sat, 26 Dec 2015 14:54:33 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-12-26_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1512260280 Content-type: multipart/alternative; boundary="Apple-Mail=_D491C0D4-A3DF-4D4A-94BA-6329A55F4121" MIME-version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: JDBC and positioned updates From: Kevin Wooten In-reply-to: <567E556F.4020103@kopileft.com> Date: Sat, 26 Dec 2015 07:54:31 -0700 Cc: Vladimir Sitnikov , List Message-id: References: <567D5C7B.3060402@kopileft.com> <567E493D.7050204@kopileft.com> <567E4AD8.50403@kopileft.com> <567E556F.4020103@kopileft.com> To: =?utf-8?Q?H=C3=A9di_HACHENI?= X-Mailer: Apple Mail (2.3112) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --Apple-Mail=_D491C0D4-A3DF-4D4A-94BA-6329A55F4121 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 https://github.com/impossibl/pgjdbc-ng = supports =E2=80=98setCursorName=E2= =80=99.=20 PostgreSQL doesn=E2=80=99t support all capabilities defined for cursors = but what you=E2=80=99ve referenced should work. > On Dec 26, 2015, at 1:53 AM, H=C3=A9di HACHENI = wrote: >=20 > 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. >=20 > 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" >>=20 >>> 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. >>=20 >>> 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. >>=20 >> This is why I do not want to help you to shoot into your own foot. >>=20 >> Anyway, pull requests are welcome. >>=20 >> [1]: https://en.wikipedia.org/wiki/Non-functional_requirement >>=20 >> Vladimir >=20 >=20 >=20 > --=20 > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc --Apple-Mail=_D491C0D4-A3DF-4D4A-94BA-6329A55F4121 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 https://github.com/impossibl/pgjdbc-ng supports = =E2=80=98setCursorName=E2=80=99. 

PostgreSQL doesn=E2=80=99t support all = capabilities defined for cursors but what you=E2=80=99ve referenced = should work.

On Dec 26, 2015, at 1:53 AM, H=C3=A9di = 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

= --Apple-Mail=_D491C0D4-A3DF-4D4A-94BA-6329A55F4121--