pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Upgrade to 9 questions
23+ messages / 9 participants
[nested] [flat]

* Upgrade to 9 questions
@ 2010-10-01 16:14 Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  0 siblings, 2 replies; 23+ messages in thread

From: Albert Kurucz @ 2010-10-01 16:14 UTC (permalink / raw)
  To: pgsql-jdbc

Do I need the new version 9 JDBC to access the version 9 server from Java,
or will the version 8 jdbc able to connect the version 9 server?

Version 9.0-801<http://jdbc.postgresql.org/download/postgresql-9.0-801.jdbc4.jar>jdbc
is released, but still missing from Maven Central.
The latest what can be found there is
http://repo1.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/

Is there anybody working on this issue?

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
@ 2010-10-01 16:53 ` Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  1 sibling, 1 reply; 23+ messages in thread

From: Samuel Gendler @ 2010-10-01 16:53 UTC (permalink / raw)
  To: Albert Kurucz <albert.kurucz@gmail.com>; +Cc: pgsql-jdbc

On Fri, Oct 1, 2010 at 9:14 AM, Albert Kurucz <albert.kurucz@gmail.com>wrote:

> Do I need the new version 9 JDBC to access the version 9 server from Java,
> or will the version 8 jdbc able to connect the version 9 server?
>
> Version 9.0-801<http://jdbc.postgresql.org/download/postgresql-9.0-801.jdbc4.jar>jdbc is released, but still missing from Maven Central.
> The latest what can be found there is
> http://repo1.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/
>
> Is there anybody working on this issue?
>
>
It is really easy to build yourself.

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
@ 2010-10-01 20:04   ` Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 23+ messages in thread

From: Albert Kurucz @ 2010-10-01 20:04 UTC (permalink / raw)
  To: Samuel Gendler <sgendler@ideasculptor.com>; +Cc: pgsql-jdbc

Samuel,

I hat to disagree about that (It is really easy to build yourself.)!

Macro processing in Java sources is the worst nightmare for those who would
want to take the source files and build it themselves.
See:
"
    private static Connection makeConnection(String url, Properties props)
throws SQLException {
        return new @JDBCCONNECTCLASS@(host(props), port(props),
                                      user(props), database(props),
                                      props, url);
    }
"

"
public static final int MAJORVERSION = @MAJORVERSION@;
"

In "Driver.java.in" !!

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
@ 2010-10-02 02:34     ` Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  0 siblings, 1 reply; 23+ messages in thread

From: Oliver Jowett @ 2010-10-02 02:34 UTC (permalink / raw)
  To: Albert Kurucz <albert.kurucz@gmail.com>; +Cc: Samuel Gendler <sgendler@ideasculptor.com>; pgsql-jdbc

Albert Kurucz wrote:
> Samuel,
> 
> I hat to disagree about that (It is really easy to build yourself.)!
> 
> Macro processing in Java sources is the worst nightmare for those who
> would want to take the source files and build it themselves.

The Ant build.xml buildfile shipped with the source does all the
necessary substitutions for you before compiling, so I'm not quite sure
what the problem is.

Of course, if you don't want to use the buildfile, you'll have to do
that work yourself, but that's a bit like trying to build gcc without
using its Makefiles - why would you want to do that?!

-O



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
@ 2010-10-02 04:47       ` Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 04:58         ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 23+ messages in thread

From: Albert Kurucz @ 2010-10-02 04:47 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc

Oliver,

What command do I need to give to Ant to make the necessary substitutions?
Why source files are not release after preprocessing?
Java source files please for the non Ant users!

Albert

On Fri, Oct 1, 2010 at 9:34 PM, Oliver Jowett <oliver@opencloud.com> wrote:

> Albert Kurucz wrote:
> > Samuel,
> >
> > I hat to disagree about that (It is really easy to build yourself.)!
> >
> > Macro processing in Java sources is the worst nightmare for those who
> > would want to take the source files and build it themselves.
>
> The Ant build.xml buildfile shipped with the source does all the
> necessary substitutions for you before compiling, so I'm not quite sure
> what the problem is.
>
> Of course, if you don't want to use the buildfile, you'll have to do
> that work yourself, but that's a bit like trying to build gcc without
> using its Makefiles - why would you want to do that?!
>
> -O
>

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
@ 2010-10-02 04:58         ` Oliver Jowett <oliver@opencloud.com>
  2010-10-02 05:08           ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-02 07:23           ` Re: Upgrade to 9 questions Craig Ringer <craig@postnewspapers.com.au>
  2010-10-03 02:43           ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  0 siblings, 3 replies; 23+ messages in thread

From: Oliver Jowett @ 2010-10-02 04:58 UTC (permalink / raw)
  To: Albert Kurucz <albert.kurucz@gmail.com>; +Cc: pgsql-jdbc

Albert Kurucz wrote:
> Oliver,
> 
> What command do I need to give to Ant to make the necessary substitutions?

The slightly misleadingly named target "driver" will configure the build
environment and do all the substitutions, but not actually compile the
result. So: "ant driver"

> Why source files are not release after preprocessing?

Because the substitutions that are needed are different depending on
your build environment e.g. which JDBC version and JDK you are building
for. The ant buildfile handles both detecting your build environment and
performing suitable substitutions. Releasing multiple source
distributions, each of which only works for one environment, where the
only difference is in the 3-4 templated files - that'd be confusing and
unnecessary when the build process already handles it, don't you think?

> Java source files please for the non Ant users!

I don't think we really support building the driver except via ant, it
is something of a de-facto standard for building Java these days. (Ok,
now the Maven people are going to yell at me ;-))

Consider it a prerequisite for building the driver, just like having a
functional JDK installed is a prerequisite.

-O



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 04:58         ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
@ 2010-10-02 05:08           ` Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-02 05:10             ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2 siblings, 1 reply; 23+ messages in thread

From: Samuel Gendler @ 2010-10-02 05:08 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: Albert Kurucz <albert.kurucz@gmail.com>; pgsql-jdbc

It's been a while since I looked. but isn't the driver target a dependency
for the actual compilation target?  I seem to recall that all I did when I
built it was to download it, change directory into the distribution, and
type 'ant'.  It's pretty hard to ask for a simpler build process than that,
I think.

On Fri, Oct 1, 2010 at 9:58 PM, Oliver Jowett <oliver@opencloud.com> wrote:

> Albert Kurucz wrote:
> > Oliver,
> >
> > What command do I need to give to Ant to make the necessary
> substitutions?
>
> The slightly misleadingly named target "driver" will configure the build
> environment and do all the substitutions, but not actually compile the
> result. So: "ant driver"
>
> > Why source files are not release after preprocessing?
>
> Because the substitutions that are needed are different depending on
> your build environment e.g. which JDBC version and JDK you are building
> for. The ant buildfile handles both detecting your build environment and
> performing suitable substitutions. Releasing multiple source
> distributions, each of which only works for one environment, where the
> only difference is in the 3-4 templated files - that'd be confusing and
> unnecessary when the build process already handles it, don't you think?
>
> > Java source files please for the non Ant users!
>
> I don't think we really support building the driver except via ant, it
> is something of a de-facto standard for building Java these days. (Ok,
> now the Maven people are going to yell at me ;-))
>
> Consider it a prerequisite for building the driver, just like having a
> functional JDK installed is a prerequisite.
>
> -O
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 04:58         ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 05:08           ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
@ 2010-10-02 05:10             ` Oliver Jowett <oliver@opencloud.com>
  0 siblings, 0 replies; 23+ messages in thread

From: Oliver Jowett @ 2010-10-02 05:10 UTC (permalink / raw)
  To: Samuel Gendler <sgendler@ideasculptor.com>; +Cc: Albert Kurucz <albert.kurucz@gmail.com>; pgsql-jdbc

Samuel Gendler wrote:
> It's been a while since I looked. but isn't the driver target a
> dependency for the actual compilation target?  I seem to recall that all
> I did when I built it was to download it, change directory into the
> distribution, and type 'ant'.  It's pretty hard to ask for a simpler
> build process than that, I think.

Yes, exactly. You'd only need to use the "driver" target separately if
you only wanted substitution, but not the actual compile/package steps
for some reason.

-O



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 04:58         ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
@ 2010-10-02 07:23           ` Craig Ringer <craig@postnewspapers.com.au>
  2 siblings, 0 replies; 23+ messages in thread

From: Craig Ringer @ 2010-10-02 07:23 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: Albert Kurucz <albert.kurucz@gmail.com>; pgsql-jdbc

On 2/10/2010 12:58 PM, Oliver Jowett wrote:
> Albert Kurucz wrote:
>> Why source files are not release after preprocessing?
>
> Because the substitutions that are needed are different depending on
> your build environment e.g. which JDBC version and JDK you are building
> for. The ant buildfile handles both detecting your build environment and
> performing suitable substitutions. Releasing multiple source
> distributions, each of which only works for one environment, where the
> only difference is in the 3-4 templated files - that'd be confusing and
> unnecessary when the build process already handles it, don't you think?

It would be pretty nice to generate source archives alongside the jars, 
though I think putting them on the website would be somewhat excessive. 
I'd mostly want the source jars to provide convenient debugging in 
Netbeans, especially with Maven where it automagically finds the source 
jars if they're there.

>> Java source files please for the non Ant users!
>
> I don't think we really support building the driver except via ant, it
> is something of a de-facto standard for building Java these days. (Ok,
> now the Maven people are going to yell at me ;-))

Consider yourself yelled at :-P

No, truly, there are things Ant's just better for, and a weird build 
like this is probably one of them. Maven focuses on standardizing 
builds, but that standardization comes at the cost of imposing some 
inflexibility, so you land up needing to write Maven plugins or break 
out to antrun.

Anyway, for an open source project it comes down to whatever's best for 
the people doing the work, and anybody else can put up or shut up. If 
you like Ant, and it's not keeping potential contributors away (which 
I'm sure it isn't) then there's no reason not to use it.

I would like to point at the Maven Ant Tasks, though, as they're useful 
when you want to spit Maven artifacts out of an Ant build (say, so they 
can be pushed to Central).

http://maven.apache.org/ant-tasks/index.html

My Ant experience is limited as I jumped ship to Maven quite early on, 
but I'd be willing to try to integrate Maven artifact generation into 
the pgjdbc build if that'd make it easier to keep Central up to date.

-- 
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 04:58         ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
@ 2010-10-03 02:43           ` Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-03 03:10             ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2 siblings, 1 reply; 23+ messages in thread

From: Albert Kurucz @ 2010-10-03 02:43 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc

Oliver,

Thanks for the info, so "ant driver" will create Java sources from the
"templated files".
How does it know which JDBC version and which JDK version I have the desire
to build for?
Is it in some config files or additional command line parameters for the
"ant driver" command or some environment variables?

Releasing multiple separate sources for different versions of a product does
not confusing me at all.
Having one source code for each target version might be more confusing.
Both ways have its own difficulties and their own benefits, and I am not
trying to switch you.

Albert


On Fri, Oct 1, 2010 at 11:58 PM, Oliver Jowett <oliver@opencloud.com> wrote:

> Albert Kurucz wrote:
> > Oliver,
> >
> > What command do I need to give to Ant to make the necessary
> substitutions?
>
> The slightly misleadingly named target "driver" will configure the build
> environment and do all the substitutions, but not actually compile the
> result. So: "ant driver"
>
> > Why source files are not release after preprocessing?
>
> Because the substitutions that are needed are different depending on
> your build environment e.g. which JDBC version and JDK you are building
> for. The ant buildfile handles both detecting your build environment and
> performing suitable substitutions. Releasing multiple source
> distributions, each of which only works for one environment, where the
> only difference is in the 3-4 templated files - that'd be confusing and
> unnecessary when the build process already handles it, don't you think?
>
> > Java source files please for the non Ant users!
>
> I don't think we really support building the driver except via ant, it
> is something of a de-facto standard for building Java these days. (Ok,
> now the Maven people are going to yell at me ;-))
>
> Consider it a prerequisite for building the driver, just like having a
> functional JDK installed is a prerequisite.
>
> -O
>

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 16:53 ` Re: Upgrade to 9 questions Samuel Gendler <sgendler@ideasculptor.com>
  2010-10-01 20:04   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 02:34     ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-02 04:47       ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-02 04:58         ` Re: Upgrade to 9 questions Oliver Jowett <oliver@opencloud.com>
  2010-10-03 02:43           ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
@ 2010-10-03 03:10             ` Oliver Jowett <oliver@opencloud.com>
  0 siblings, 0 replies; 23+ messages in thread

From: Oliver Jowett @ 2010-10-03 03:10 UTC (permalink / raw)
  To: Albert Kurucz <albert.kurucz@gmail.com>; +Cc: pgsql-jdbc

Albert Kurucz wrote:

> How does it know which JDBC version and which JDK version I have the
> desire to build for?
> Is it in some config files or additional command line parameters for the
> "ant driver" command or some environment variables?

It looks at the ant ${java.specification.version} property.
You can see the details for yourself at
http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/jdbc/pgjdbc/build.xml?rev=1.87&content-type=text/x-c...

-O



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
@ 2010-10-01 17:09 ` Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-01 18:43   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  1 sibling, 2 replies; 23+ messages in thread

From: Bremer, Gerd @ 2010-10-01 17:09 UTC (permalink / raw)
  To: Albert Kurucz <albert.kurucz@gmail.com>; +Cc: pgsql-jdbc

I asked the Maven central question a few days ago, see http://archives.postgresql.org/pgsql-jdbc/2010-09/msg00026.php, and opened a ticket at Sonatype https://issues.sonatype.org/browse/OSSRH-843, however as I commented in the ticket I do not feel comfortable to upload artefacts from a project I haven't contributed to.

Having latest releases in the Maven central repo is important, so I was surprised when I didn't find them.

- Gerd



Am 01.10.2010 um 18:22 schrieb "Albert Kurucz" <albert.kurucz@gmail.com>:

> Do I need the new version 9 JDBC to access the version 9 server from Java, or will the version 8 jdbc able to connect the version 9 server?
> 
> Version 9.0-801 jdbc is released, but still missing from Maven Central.
> The latest what can be found there is http://repo1.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/
> 
> Is there anybody working on this issue?
> 

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
@ 2010-10-01 17:39   ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-02 01:12     ` Re: Upgrade to 9 questions Craig Ringer <craig@postnewspapers.com.au>
  2010-10-02 06:40     ` Re: Upgrade to 9 questions Daniel Dekany <ddekany@freemail.hu>
  2010-10-04 09:07     ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  1 sibling, 3 replies; 23+ messages in thread

From: Kevin Grittner @ 2010-10-01 17:39 UTC (permalink / raw)
  To: Gerd Bremer <gerd.bremer@coremedia.com>; Albert Kurucz <albert.kurucz@gmail.com>; +Cc: pgsql-jdbc

"Bremer, Gerd" <gerd.bremer@coremedia.com> wrote:
 
> I do not feel comfortable to upload artefacts from a project I
> haven't contributed to.
 
Keeping such a repository up-to-date with current jars could be
considered a contribution.
 
> Having latest releases in the Maven central repo is important, so
> I was surprised when I didn't find them.
 
It's not important to everyone; quite likely just to a minority.
Things in an open source project often get done by those
people to whom they are important.  I suspect that if you pull
official jars from the JDBC download page, nobody will find anything
amiss if you keep Maven central current.
 
-Kevin



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
@ 2010-10-02 01:12     ` Craig Ringer <craig@postnewspapers.com.au>
  2 siblings, 0 replies; 23+ messages in thread

From: Craig Ringer @ 2010-10-02 01:12 UTC (permalink / raw)
  To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: pgsql-jdbc

On 2/10/2010 1:39 AM, Kevin Grittner wrote:
> I suspect that if you pull
> official jars from the JDBC download page, nobody will find anything
> amiss if you keep Maven central current.

Frankly, that's more than a little bit worrying. Joe Black Hat could 
rather trivially insert an exciting little back door into a version they 
"helpfully" push to Central. PgJDBC doesn't have published md5sums or 
gpg signatures, so there's no convenient way to verify that the jar 
being submitted is actually approved by the project.

I've been concerned about Maven's apparent lack of cryptographic 
verification before (and in fact the apparent lack of concern across the 
entire Java community), but I'd foolishly assumed Central uploads 
required authorization to push to a given groupId's section.

-- 
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
@ 2010-10-02 06:40     ` Daniel Dekany <ddekany@freemail.hu>
  2010-10-02 07:24       ` Re: Upgrade to 9 questions Craig Ringer <craig@postnewspapers.com.au>
  2 siblings, 1 reply; 23+ messages in thread

From: Daniel Dekany @ 2010-10-02 06:40 UTC (permalink / raw)
  To: pgsql-jdbc

Friday, October 1, 2010, 7:39:31 PM, Kevin Grittner wrote:

> "Bremer, Gerd" <gerd.bremer@coremedia.com> wrote:
[snip]
> I suspect that if you pull official jars from the JDBC download
> page, nobody will find anything amiss if you keep Maven central
> current.

Although if someone wants to contribute for this purpose, it makes
much more sense to add Maven deployment to the Ant(?) script that is
used for making the releases. Then whoever does the release does the
release on Maven as well. It's safer and causes less delay.

-- 
Best regards,
 Daniel Dekany




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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-02 06:40     ` Re: Upgrade to 9 questions Daniel Dekany <ddekany@freemail.hu>
@ 2010-10-02 07:24       ` Craig Ringer <craig@postnewspapers.com.au>
  2010-10-02 08:30         ` Re: Upgrade to 9 questions Daniel Dekany <ddekany@freemail.hu>
  0 siblings, 1 reply; 23+ messages in thread

From: Craig Ringer @ 2010-10-02 07:24 UTC (permalink / raw)
  To: Daniel Dekany <ddekany@freemail.hu>; +Cc: pgsql-jdbc

On 2/10/2010 2:40 PM, Daniel Dekany wrote:
> Friday, October 1, 2010, 7:39:31 PM, Kevin Grittner wrote:
>
>> "Bremer, Gerd"<gerd.bremer@coremedia.com>  wrote:
> [snip]
>> I suspect that if you pull official jars from the JDBC download
>> page, nobody will find anything amiss if you keep Maven central
>> current.
>
> Although if someone wants to contribute for this purpose, it makes
> much more sense to add Maven deployment to the Ant(?) script that is
> used for making the releases. Then whoever does the release does the
> release on Maven as well. It's safer and causes less delay.

http://maven.apache.org/ant-tasks/index.html

I'll give it a go if nobody else with more experience messing with Ant 
and PgJDBC is volunteering.

-- 
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-02 06:40     ` Re: Upgrade to 9 questions Daniel Dekany <ddekany@freemail.hu>
  2010-10-02 07:24       ` Re: Upgrade to 9 questions Craig Ringer <craig@postnewspapers.com.au>
@ 2010-10-02 08:30         ` Daniel Dekany <ddekany@freemail.hu>
  2010-10-02 08:59           ` Re: Upgrade to 9 questions Craig Ringer <craig@postnewspapers.com.au>
  0 siblings, 1 reply; 23+ messages in thread

From: Daniel Dekany @ 2010-10-02 08:30 UTC (permalink / raw)
  To: Craig Ringer <craig@postnewspapers.com.au>; +Cc: pgsql-jdbc

Saturday, October 2, 2010, 9:24:42 AM, Craig Ringer wrote:

> On 2/10/2010 2:40 PM, Daniel Dekany wrote:
>> Friday, October 1, 2010, 7:39:31 PM, Kevin Grittner wrote:
>>
>>> "Bremer, Gerd"<gerd.bremer@coremedia.com>  wrote:
>> [snip]
>>> I suspect that if you pull official jars from the JDBC download
>>> page, nobody will find anything amiss if you keep Maven central
>>> current.
>>
>> Although if someone wants to contribute for this purpose, it makes
>> much more sense to add Maven deployment to the Ant(?) script that is
>> used for making the releases. Then whoever does the release does the
>> release on Maven as well. It's safer and causes less delay.
>
> http://maven.apache.org/ant-tasks/index.html

Or, a more relevant page:
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

(AFAIR nowadays you will need a middleman, like sonatype.org for
example. The old way of doing this, which was that the Maven central
repo periodically rsync-ed itself with the public repo on your Web
server is now deprecated.)

> I'll give it a go if nobody else with more experience messing with Ant
> and PgJDBC is volunteering.
>
> -- 
> Craig Ringer
>
> Tech-related writing at http://soapyfrogs.blogspot.com/
>

-- 
Best regards,
 Daniel Dekany




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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-02 06:40     ` Re: Upgrade to 9 questions Daniel Dekany <ddekany@freemail.hu>
  2010-10-02 07:24       ` Re: Upgrade to 9 questions Craig Ringer <craig@postnewspapers.com.au>
  2010-10-02 08:30         ` Re: Upgrade to 9 questions Daniel Dekany <ddekany@freemail.hu>
@ 2010-10-02 08:59           ` Craig Ringer <craig@postnewspapers.com.au>
  0 siblings, 0 replies; 23+ messages in thread

From: Craig Ringer @ 2010-10-02 08:59 UTC (permalink / raw)
  To: Daniel Dekany <ddekany@freemail.hu>; +Cc: pgsql-jdbc

On 2/10/2010 4:30 PM, Daniel Dekany wrote:
> Saturday, October 2, 2010, 9:24:42 AM, Craig Ringer wrote:
>
>> On 2/10/2010 2:40 PM, Daniel Dekany wrote:
>>> Friday, October 1, 2010, 7:39:31 PM, Kevin Grittner wrote:
>>>
>>>> "Bremer, Gerd"<gerd.bremer@coremedia.com>   wrote:
>>> [snip]
>>>> I suspect that if you pull official jars from the JDBC download
>>>> page, nobody will find anything amiss if you keep Maven central
>>>> current.
>>>
>>> Although if someone wants to contribute for this purpose, it makes
>>> much more sense to add Maven deployment to the Ant(?) script that is
>>> used for making the releases. Then whoever does the release does the
>>> release on Maven as well. It's safer and causes less delay.
>>
>> http://maven.apache.org/ant-tasks/index.html
>
> Or, a more relevant page:
> https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
>
> (AFAIR nowadays you will need a middleman, like sonatype.org for
> example. The old way of doing this, which was that the Maven central
> repo periodically rsync-ed itself with the public repo on your Web
> server is now deprecated.)

Aah, I didn't realize Sonatype were taking such a big role these days 
with Nexus. Good - they seem to be pushing for quality control, 
consistency, and at least some degree of security in their repository 
management.

Thanks for the link.

-- 
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 17:39   ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
@ 2010-10-04 09:07     ` Bremer, Gerd <gerd.bremer@coremedia.com>
  2 siblings, 0 replies; 23+ messages in thread

From: Bremer, Gerd @ 2010-10-04 09:07 UTC (permalink / raw)
  To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; Albert Kurucz <albert.kurucz@gmail.com>; +Cc: pgsql-jdbc

I created 6 artefact bundles and uploaded them to Sonatype staging repository as described on https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+Maven+Central. 

https://oss.sonatype.org/content/repositories/central_bundles-266
https://oss.sonatype.org/content/repositories/central_bundles-265
https://oss.sonatype.org/content/repositories/central_bundles-264
https://oss.sonatype.org/content/repositories/central_bundles-263
https://oss.sonatype.org/content/repositories/central_bundles-261
https://oss.sonatype.org/content/repositories/central_bundles-260

Currently they are in evaluation phase and not yet published on Maven Central. 
* The most important class jars are the official jars from the JDBC download page. 
* The javadoc jars are the same for jdbc3 and jdbc4, originating from the build/publicapi directory.
* The source jars are the same for jdbc3 and jdbc4, originating from the 'org' source directory without test classes in org/postgresql/test.

-Gerd


-----Ursprüngliche Nachricht-----
Von: Kevin Grittner [mailto:Kevin.Grittner@wicourts.gov] 
Gesendet: Freitag, 1. Oktober 2010 19:40
An: Bremer, Gerd; Albert Kurucz
Cc: pgsql-jdbc@postgresql.org
Betreff: Re: [JDBC] Upgrade to 9 questions

"Bremer, Gerd" <gerd.bremer@coremedia.com> wrote:
 
> I do not feel comfortable to upload artefacts from a project I
> haven't contributed to.
 
Keeping such a repository up-to-date with current jars could be
considered a contribution.
 
> Having latest releases in the Maven central repo is important, so
> I was surprised when I didn't find them.
 
It's not important to everyone; quite likely just to a minority.
Things in an open source project often get done by those
people to whom they are important.  I suspect that if you pull
official jars from the JDBC download page, nobody will find anything
amiss if you keep Maven central current.
 
-Kevin



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
@ 2010-10-01 18:43   ` Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 18:54     ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
  1 sibling, 1 reply; 23+ messages in thread

From: Albert Kurucz @ 2010-10-01 18:43 UTC (permalink / raw)
  To: pgsql-jdbc

Best Regards,
Albert Kurucz
Senior Test Engineer,
Sanmina-SCI
13000 S. Memorial Pkwy,
Huntsville, AL, 35803
256-882-4800 ext. 3943
Thanks Gerd for answering my second question.
Anybody could comment on the other one, about the version compatibility?


On Fri, Oct 1, 2010 at 12:09 PM, Bremer, Gerd <gerd.bremer@coremedia.com>wrote:

> I asked the Maven central question a few days ago, see
> http://archives.postgresql.org/pgsql-jdbc/2010-09/msg00026.php, and opened
> a ticket at Sonatype https://issues.sonatype.org/browse/OSSRH-843, however
> as I commented in the ticket I do not feel comfortable to upload artefacts
> from a project I haven't contributed to.
>
> Having latest releases in the Maven central repo is important, so I was
> surprised when I didn't find them.
>
> - Gerd
>
>
>
> Am 01.10.2010 um 18:22 schrieb "Albert Kurucz" <albert.kurucz@gmail.com>:
>
> Do I need the new version 9 JDBC to access the version 9 server from Java,
> or will the version 8 jdbc able to connect the version 9 server?
>
> Version 9.0-801<http://jdbc.postgresql.org/download/postgresql-9.0-801.jdbc4.jar>jdbc is released, but still missing from Maven Central.
> The latest what can be found there is
> <http://repo1.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/;
> http://repo1.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/
>
> Is there anybody working on this issue?
>
>

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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 18:43   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
@ 2010-10-01 18:54     ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-01 19:46       ` Re: Upgrade to 9 questions Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 23+ messages in thread

From: Kevin Grittner @ 2010-10-01 18:54 UTC (permalink / raw)
  To: Albert Kurucz <albert.kurucz@gmail.com>; pgsql-jdbc

Albert Kurucz <albert.kurucz@gmail.com> wrote:
 
> Anybody could comment on the other one, about the version
> compatibility?
 
I generally go by what the download page says:
 
http://jdbc.postgresql.org/download.html#current
 
This currently recommends 9.0-801 for PostgreSQL version 7.2 or
newer.  I seem to remember some compatibility problems with using
the older driver against 9.0, although I don't remember what the
issues were.  I would be particularly skeptical about using an older
JDBC jar against 9.0 if you care about the JDBC metadata objects. 
(It's hard for an old driver to know what future releases are doing
with the system tables.)
 
-Kevin



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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 18:43   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 18:54     ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
@ 2010-10-01 19:46       ` Kris Jurka <books@ejurka.com>
  2010-10-02 08:58         ` Re: Upgrade to 9 questions Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 1 reply; 23+ messages in thread

From: Kris Jurka @ 2010-10-01 19:46 UTC (permalink / raw)
  To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: Albert Kurucz <albert.kurucz@gmail.com>; pgsql-jdbc



On Fri, 1 Oct 2010, Kevin Grittner wrote:

>> Anybody could comment on the other one, about the version
>> compatibility?
>
> This currently recommends 9.0-801 for PostgreSQL version 7.2 or
> newer.  I seem to remember some compatibility problems with using
> the older driver against 9.0, although I don't remember what the
> issues were.  I would be particularly skeptical about using an older
> JDBC jar against 9.0 if you care about the JDBC metadata objects.
> (It's hard for an old driver to know what future releases are doing
> with the system tables.)
>

Aside from metadata changes, the key change that needs a new JDBC driver 
for a 9.0 server is the format of bytea data.  You need to use the new 
JDBC driver or to adjust your server settings to return bytea data in the 
old format or you will silently get corrupt data.

Kris Jurka




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

* Re: Upgrade to 9 questions
  2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 17:09 ` Re: Upgrade to 9 questions Bremer, Gerd <gerd.bremer@coremedia.com>
  2010-10-01 18:43   ` Re: Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
  2010-10-01 18:54     ` Re: Upgrade to 9 questions Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-10-01 19:46       ` Re: Upgrade to 9 questions Kris Jurka <books@ejurka.com>
@ 2010-10-02 08:58         ` Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 0 replies; 23+ messages in thread

From: Thomas Kellerer @ 2010-10-02 08:58 UTC (permalink / raw)
  To: pgsql-jdbc

Kris Jurka wrote on 01.10.2010 21:46:
> Aside from metadata changes, the key change that needs a new JDBC
> driver for a 9.0 server is the format of bytea data. You need to use
> the new JDBC driver or to adjust your server settings to return bytea
> data in the old format or you will silently get corrupt data.
>

I'm currently sticking to the 8.4 driver, as with the 9.0 driver, DatabaseMetaData.getIndexInfo() throws an exception as it uses a SQL statement that is incompatible with PG 9.0 (I reported that about a week ago here on the list)

Regards
Thomas





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


end of thread, other threads:[~2010-10-04 09:07 UTC | newest]

Thread overview: 23+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-10-01 16:14 Upgrade to 9 questions Albert Kurucz <albert.kurucz@gmail.com>
2010-10-01 16:53 ` Samuel Gendler <sgendler@ideasculptor.com>
2010-10-01 20:04   ` Albert Kurucz <albert.kurucz@gmail.com>
2010-10-02 02:34     ` Oliver Jowett <oliver@opencloud.com>
2010-10-02 04:47       ` Albert Kurucz <albert.kurucz@gmail.com>
2010-10-02 04:58         ` Oliver Jowett <oliver@opencloud.com>
2010-10-02 05:08           ` Samuel Gendler <sgendler@ideasculptor.com>
2010-10-02 05:10             ` Oliver Jowett <oliver@opencloud.com>
2010-10-02 07:23           ` Craig Ringer <craig@postnewspapers.com.au>
2010-10-03 02:43           ` Albert Kurucz <albert.kurucz@gmail.com>
2010-10-03 03:10             ` Oliver Jowett <oliver@opencloud.com>
2010-10-01 17:09 ` Bremer, Gerd <gerd.bremer@coremedia.com>
2010-10-01 17:39   ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-10-02 01:12     ` Craig Ringer <craig@postnewspapers.com.au>
2010-10-02 06:40     ` Daniel Dekany <ddekany@freemail.hu>
2010-10-02 07:24       ` Craig Ringer <craig@postnewspapers.com.au>
2010-10-02 08:30         ` Daniel Dekany <ddekany@freemail.hu>
2010-10-02 08:59           ` Craig Ringer <craig@postnewspapers.com.au>
2010-10-04 09:07     ` Bremer, Gerd <gerd.bremer@coremedia.com>
2010-10-01 18:43   ` Albert Kurucz <albert.kurucz@gmail.com>
2010-10-01 18:54     ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-10-01 19:46       ` Kris Jurka <books@ejurka.com>
2010-10-02 08:58         ` Thomas Kellerer <spam_eater@gmx.net>

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