public inbox for [email protected]  
help / color / mirror / Atom feed
JDBC documentation - issue report
4+ messages / 4 participants
[nested] [flat]

* JDBC documentation - issue report
@ 2014-08-18 13:18 Christopher Barham <[email protected]>
  2014-08-18 17:12 ` Re: [DOCS] JDBC documentation - issue report Josh Berkus <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Christopher Barham @ 2014-08-18 13:18 UTC (permalink / raw)
  To: pgsql-docs

Hi,

Just spotted a possible issue in the Documentation around loading the JDBC driver.  This page documents how: http://jdbc.postgresql.org/documentation/93/load.html
However, as of JDK6/JDBC 4.0, it should not be necessary to use the
Class.forName("org.postgresql.Driver");
method to load the JDBC driver as they are automatically loaded  - see Javadoc here
http://docs.oracle.com/javase/8/docs/api/java/sql/DriverManager.html

Cheers,
Chris



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [DOCS] JDBC documentation - issue report
  2014-08-18 13:18 JDBC documentation - issue report Christopher Barham <[email protected]>
@ 2014-08-18 17:12 ` Josh Berkus <[email protected]>
  2014-08-20 04:27   ` Re: [JDBC] JDBC documentation - issue report Craig Ringer <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Josh Berkus @ 2014-08-18 17:12 UTC (permalink / raw)
  To: Christopher Barham <[email protected]>; pgsql-docs; [email protected]

Forwarding this to pgsql-jdbc mailing list.

On 08/18/2014 06:18 AM, Christopher Barham wrote:
> Hi,
> 
>  
> 
> Just spotted a possible issue in the Documentation around loading the
> JDBC driver.  This page documents how:
> http://jdbc.postgresql.org/documentation/93/load.html
> 
> However, as of JDK6/JDBC 4.0, it should not be necessary to use the
> 
> Class.forName("org.postgresql.Driver");
> 
> method to load the JDBC driver as they are automatically loaded  – see
> Javadoc here
> 
> http://docs.oracle.com/javase/8/docs/api/java/sql/DriverManager.html
> 
>  
> 
> Cheers,
> 
> Chris
> 
>  
> 


-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


-- 
Sent via pgsql-jdbc mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [JDBC] JDBC documentation - issue report
  2014-08-18 13:18 JDBC documentation - issue report Christopher Barham <[email protected]>
  2014-08-18 17:12 ` Re: [DOCS] JDBC documentation - issue report Josh Berkus <[email protected]>
@ 2014-08-20 04:27   ` Craig Ringer <[email protected]>
  2014-08-20 11:57     ` Re: [DOCS] JDBC documentation - issue report Dave Cramer <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Craig Ringer @ 2014-08-20 04:27 UTC (permalink / raw)
  To: Josh Berkus <[email protected]>; Christopher Barham <[email protected]>; pgsql-docs; [email protected]

On 08/19/2014 01:12 AM, Josh Berkus wrote:
> Forwarding this to pgsql-jdbc mailing list.
> 
> On 08/18/2014 06:18 AM, Christopher Barham wrote:
>> Hi,
>>
>>  
>>
>> Just spotted a possible issue in the Documentation around loading the
>> JDBC driver.  This page documents how:
>> http://jdbc.postgresql.org/documentation/93/load.html
>>
>> However, as of JDK6/JDBC 4.0, it should not be necessary to use the
>>
>> Class.forName("org.postgresql.Driver");
>>
>> method to load the JDBC driver as they are automatically loaded  – see
>> Javadoc here
>>
>> http://docs.oracle.com/javase/8/docs/api/java/sql/DriverManager.html

That's valid, but minor, really; the Class.forName(...) call is harmless.

Given how badly confused users seem to be about JDBC3 vs JDBC4 etc, I'm
reluctant to remove this until Java SE 5 is dead and gone and PgJDBC
drops JDBC4 support. Sometime around 2030 at the rate adoption of newer
releases is going.

A note to say that explicit loading is ineffective if using a JDBC4
driver and on Java 1.6 or newer would be reasonable.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [DOCS] JDBC documentation - issue report
  2014-08-18 13:18 JDBC documentation - issue report Christopher Barham <[email protected]>
  2014-08-18 17:12 ` Re: [DOCS] JDBC documentation - issue report Josh Berkus <[email protected]>
  2014-08-20 04:27   ` Re: [JDBC] JDBC documentation - issue report Craig Ringer <[email protected]>
@ 2014-08-20 11:57     ` Dave Cramer <[email protected]>
  0 siblings, 0 replies; 4+ messages in thread

From: Dave Cramer @ 2014-08-20 11:57 UTC (permalink / raw)
  To: Craig Ringer <[email protected]>; +Cc: Josh Berkus <[email protected]>; Christopher Barham <[email protected]>; pgsql-docs; List <[email protected]>

Ya, this really is an innocuous issue

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On 20 August 2014 00:27, Craig Ringer <[email protected]> wrote:

> On 08/19/2014 01:12 AM, Josh Berkus wrote:
> > Forwarding this to pgsql-jdbc mailing list.
> >
> > On 08/18/2014 06:18 AM, Christopher Barham wrote:
> >> Hi,
> >>
> >>
> >>
> >> Just spotted a possible issue in the Documentation around loading the
> >> JDBC driver.  This page documents how:
> >> http://jdbc.postgresql.org/documentation/93/load.html
> >>
> >> However, as of JDK6/JDBC 4.0, it should not be necessary to use the
> >>
> >> Class.forName("org.postgresql.Driver");
> >>
> >> method to load the JDBC driver as they are automatically loaded  – see
> >> Javadoc here
> >>
> >> http://docs.oracle.com/javase/8/docs/api/java/sql/DriverManager.html
>
> That's valid, but minor, really; the Class.forName(...) call is harmless.
>
> Given how badly confused users seem to be about JDBC3 vs JDBC4 etc, I'm
> reluctant to remove this until Java SE 5 is dead and gone and PgJDBC
> drops JDBC4 support. Sometime around 2030 at the rate adoption of newer
> releases is going.
>
> A note to say that explicit loading is ineffective if using a JDBC4
> driver and on Java 1.6 or newer would be reasonable.
>
> --
>  Craig Ringer                   http://www.2ndQuadrant.com/
>  PostgreSQL Development, 24x7 Support, Training & Services
>
>
> --
> Sent via pgsql-jdbc mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>


^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2014-08-20 11:57 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-08-18 13:18 JDBC documentation - issue report Christopher Barham <[email protected]>
2014-08-18 17:12 ` Josh Berkus <[email protected]>
2014-08-20 04:27   ` Craig Ringer <[email protected]>
2014-08-20 11:57     ` Dave Cramer <[email protected]>

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