Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIOd6-0004Vs-Td for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2015 22:06:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIOd5-0000wp-LN for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2015 22:06:15 +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 1ZIOcb-0000PB-VP for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 22:05:46 +0000 Received: from smtprelay01.ispgateway.de ([80.67.31.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIOcY-0000hh-SJ for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 22:05:45 +0000 Received: from [88.66.6.172] (helo=Zauselmaus) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIOcV-0000n6-L8 for pgsql-jdbc@postgresql.org; Fri, 24 Jul 2015 00:05:39 +0200 From: "Markus KARG" To: "'List'" References: <001801d0c564$cd15bde0$674139a0$@eu> <002901d0c567$c6f9fe00$54edfa00$@eu> <002c01d0c570$0cd3f1d0$267bd570$@eu> In-Reply-To: Subject: Re: Public vs internal APIs Date: Fri, 24 Jul 2015 00:05:45 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <000f01d0c593$b9faf340$2df0d9c0$@eu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdDFcva49ugP7VBuQPmFFYck4/n/VgAIDOTA Content-Language: de X-AVK-Virus-Check: AVA 25.2465;479D603D X-AVK-Spam-Check: 1; str=0001.0A0C0203.55B16533.00EB,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== 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 Understood. But how big is the risk those people that do not go with pure J= DBC but choose to go with native PostgreSQL driver class are not clever eno= ugh 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]=20 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 i= mplementation. 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 regu= lar JDBC, however, there are cases when non-JDBC usage is intended. Vladimir --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc