pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Markus KARG <markus@headcrashing.eu>
To: 'List' <pgsql-jdbc@postgresql.org>
Subject: Re: Public vs internal APIs
Date: Fri, 24 Jul 2015 00:05:45 +0200
Message-ID: <000f01d0c593$b9faf340$2df0d9c0$@eu> (raw)
In-Reply-To: <CAB=Je-FThkhU+48O-HDLXNwuSOwgVXuZLSVey7F2x7dqwkCxEw@mail.gmail.com>
References: <CAB=Je-Ha1mDY5Yzk035zEEQGFOTcMN71Gtpdo8CqjYfMAFJKRQ@mail.gmail.com>
<001801d0c564$cd15bde0$674139a0$@eu>
<CAB=Je-EELAJfmyo0uCwXewLhvqgg216Xs72R4YxtPqeyU3o-Yw@mail.gmail.com>
<002901d0c567$c6f9fe00$54edfa00$@eu>
<CAB=Je-HrCQV+J79nvsu3kUms97uJ1AGNa6ci5+ArOtv+EcXV3A@mail.gmail.com>
<002c01d0c570$0cd3f1d0$267bd570$@eu>
<CAB=Je-FThkhU+48O-HDLXNwuSOwgVXuZLSVey7F2x7dqwkCxEw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Understood. But how big is the risk those people that do not go with pure JDBC but choose to go with native PostgreSQL driver class are not clever enough to abstain from picking implementation details? And how problematic is it, when they actually use those classes?
BTW, in the long term would be a good idea to contribute the needed changes to JDBC by becoming an official JSR EG member. Dave already applied AFAIK.
-----Original Message-----
From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com]
Sent: Donnerstag, 23. Juli 2015 20:11
To: Markus KARG
Cc: List
Subject: Re: [JDBC] Public vs internal APIs
>I mean, people shall code against java.* API, not against org.postgresql implementation. If we make this clear in the JavaDocs, maybe it is enough?
On contrary, we do want to expose advanced stuff PostgreSQL has.
For instance: "timestamp with time zone". Not everybody can upgrade to java 8.
Another example is COPY command: JDBC has no standard way of doing that.
We have to define org.postgresql interface for it.
JDBC is not that good for async operations either: logical decoding, notify, etc, so again some org.postgresql might do much better job here.
For regular stuff like "send int here and there", everybody should use regular JDBC, however, there are cases when non-JDBC usage is intended.
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: <000f01d0c593$b9faf340$2df0d9c0$@eu> Permalink: ../000f01d0c593$b9faf340$2df0d9c0$@eu/ Also on: postgresql.org/message-id/000f01d0c593$b9faf340$2df0d9c0$@eu ·
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: markus@headcrashing.eu Subject: Re: Public vs internal APIs In-Reply-To: <000f01d0c593$b9faf340$2df0d9c0$@eu> References: <CAB=Je-Ha1mDY5Yzk035zEEQGFOTcMN71Gtpdo8CqjYfMAFJKRQ@mail.gmail.com> <001801d0c564$cd15bde0$674139a0$@eu> <CAB=Je-EELAJfmyo0uCwXewLhvqgg216Xs72R4YxtPqeyU3o-Yw@mail.gmail.com> <002901d0c567$c6f9fe00$54edfa00$@eu> <CAB=Je-HrCQV+J79nvsu3kUms97uJ1AGNa6ci5+ArOtv+EcXV3A@mail.gmail.com> <002c01d0c570$0cd3f1d0$267bd570$@eu> <CAB=Je-FThkhU+48O-HDLXNwuSOwgVXuZLSVey7F2x7dqwkCxEw@mail.gmail.com> <000f01d0c593$b9faf340$2df0d9c0$@eu> * 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