pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Віталій Тимчишин <tivv00@gmail.com>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver
Date: Tue, 23 Oct 2012 06:06:31 +0800
Message-ID: <5085C367.7090702@ringerc.id.au> (raw)
In-Reply-To: <CABWW-d0JJFho=rPh26Cps1iwob74xikWDcn+x8jAFwsb0agogQ@mail.gmail.com>
References: <CACLs3uCrjXaY94ivGQgoXDfe-2dwxwsHdPXrA3ey+eL7TPQEJA@mail.gmail.com>
	<d2b756c0-cb16-4a4b-a893-33042a2d28a9@googlegroups.com>
	<507FC5EA.6070905@ringerc.id.au>
	<51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local>
	<507FF3A2.4040306@ringerc.id.au>
	<CADK3HH+QvASPUKaSgiYCPqVzYFtoY+5HYBLjg0NgwazJK_CK2Q@mail.gmail.com>
	<507FFAA9.3060902@ringerc.id.au>
	<CABWW-d0JJFho=rPh26Cps1iwob74xikWDcn+x8jAFwsb0agogQ@mail.gmail.com>

On 10/23/2012 02:41 AM, Віталій Тимчишин wrote:
> AFAIR class is not loaded until after it is accessed (very same line),
> so something like this should work:
> if (isJava7()) {
>  return new Java7Resolver();
> } else {
>  return new Java6Resolver();
> }

Good point - that should work just fine.

--
Craig Ringer





view thread (25+ messages)  latest in thread

Message-ID: <5085C367.7090702@ringerc.id.au>
Permalink:  ../5085C367.7090702@ringerc.id.au/
Also on:    postgresql.org/message-id/5085C367.7090702@ringerc.id.au

 · 

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: ringerc@ringerc.id.au, tivv00@gmail.com
  Subject: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver
  In-Reply-To: <5085C367.7090702@ringerc.id.au>
  References: <CACLs3uCrjXaY94ivGQgoXDfe-2dwxwsHdPXrA3ey+eL7TPQEJA@mail.gmail.com> <d2b756c0-cb16-4a4b-a893-33042a2d28a9@googlegroups.com> <507FC5EA.6070905@ringerc.id.au> <51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local> <507FF3A2.4040306@ringerc.id.au> <CADK3HH+QvASPUKaSgiYCPqVzYFtoY+5HYBLjg0NgwazJK_CK2Q@mail.gmail.com> <507FFAA9.3060902@ringerc.id.au> <CABWW-d0JJFho=rPh26Cps1iwob74xikWDcn+x8jAFwsb0agogQ@mail.gmail.com> <5085C367.7090702@ringerc.id.au>

* 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