From robert.jacoby@RACKSPACE.COM Tue Jun 26 17:21:21 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 758B81927160 for ; Tue, 26 Jun 2012 14:21:21 -0300 (ADT) Received: from mx1.ord1.rackspace.com ([173.203.4.135]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjZS4-0005iA-9D for pgsql-jdbc@postgresql.org; Tue, 26 Jun 2012 17:21:20 +0000 X-SBRS: None X-SenderGroup: RELAYLIST-US X-MailFlowPolicy: $RELAYED-US X-IronPort-AV: E=McAfee;i="5400,1158,6754"; a="56619677" X-IronPort-AV: E=Sophos;i="4.77,478,1336366800"; d="scan'208,217";a="56619677" Received: from ord1exh02.rackspace.corp ([10.12.120.26]) by mx1.ord1.rackspace.com with ESMTP/TLS/AES128-SHA; 26 Jun 2012 12:21:07 -0500 Received: from ORD1EXD04.RACKSPACE.CORP ([fe80::7ca9:7766:7f3a:1a45]) by ORD1EXH02.RACKSPACE.CORP ([fe80::8cdc:c647:5909:140f%19]) with mapi id 14.02.0298.004; Tue, 26 Jun 2012 12:21:07 -0500 From: Robert Jacoby To: "pgsql-jdbc@postgresql.org" Subject: Forward compatibility of drivers Thread-Topic: Forward compatibility of drivers Thread-Index: AQHNU8ASfuMWdSS3aEmH3m8mpaFq8A== Date: Tue, 26 Jun 2012 17:21:06 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.180.51] Content-Type: multipart/alternative; boundary="_000_CC0F59B122CF9robertjacobyrackspacecom_" MIME-Version: 1.0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/88 X-Sequence-Number: 23082 --_000_CC0F59B122CF9robertjacobyrackspacecom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have an app that is using the 8.2-504.jdbc3 driver. It's currently hittin= g an 8.3.8 pgsql db. I would like to upgrade the database to 9.1.4. The ben= efits of upgrading to the latest driver aside, is using the 8.2 driver agai= nst a 9.1.4 database supported? If not, any idea what landmines I can expec= t? I saw backward compatibility notes that the 9.1-902 driver is backward comp= atible with 7.2 postgresql+, but nothing regarding forward compatibility of= the drivers. Thanks, Bob --_000_CC0F59B122CF9robertjacobyrackspacecom_ Content-Type: text/html; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable
I have an app that is using the 8.2-504.jdbc3 driver. It's currently h= itting an 8.3.8 pgsql db. I would like to upgrade the database to 9.1.4. Th= e benefits of upgrading to the latest driver aside, is using the 8.2 driver= against a 9.1.4 database supported? If not, any idea what landmines I can expect?

I saw backward compatibility notes that the 9.1-902 driver is backward= compatible with 7.2 postgresql+, but nothing regarding forward compati= bility of the drivers.

Thanks,
Bob 
--_000_CC0F59B122CF9robertjacobyrackspacecom_-- From pg@fastcrypt.com Tue Jun 26 18:28:08 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 09B0E1927160 for ; Tue, 26 Jun 2012 15:28:08 -0300 (ADT) Received: from mail-ob0-f174.google.com ([209.85.214.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjaUh-0006xW-3B for pgsql-jdbc@postgresql.org; Tue, 26 Jun 2012 18:28:07 +0000 Received: by obbuo13 with SMTP id uo13so234266obb.19 for ; Tue, 26 Jun 2012 11:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=K7+cRDM9T45ZaD8Li0yNFbwKAwWyVARX8/P9C3fjsHE=; b=J7Z0ynqaJlJ9JSpLAOuADXrXs4SvpkZuSYFtH3lVkNFpAN16YJ4FQjNE+YWVqFDqI0 WrGW/F2iF4vFJfj79CWKg+oCG05Cvf5DznmjqKkRVydR5pbxikpQIOQZBqPfFK5cdn0k mLi4KEcgKDjqW8CORsjemqtO/Ny9BOhbDxLWVpdmS5RE06ufHqigcymARD1kO2MbWTt4 UVplbptBDMTGAVrQ3mIw0Q6z+yPIeaB16BUNQjOJFKntIaJYXmglEwE+oFRjbB+Yf973 pHroM50UKmmW/B8rfI+6OX4CivBnvCTcKhm4+sP+n8rpVxCInAWNA/X6PDMkQgBc8SOG jZPQ== Received: by 10.182.162.38 with SMTP id xx6mr17411712obb.50.1340735273927; Tue, 26 Jun 2012 11:27:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.27.72 with HTTP; Tue, 26 Jun 2012 11:27:33 -0700 (PDT) In-Reply-To: References: From: Dave Cramer Date: Tue, 26 Jun 2012 14:27:33 -0400 X-Google-Sender-Auth: 0rDqM_qpoTuJLMeB3iVS9mtdIPI Message-ID: Subject: Re: Forward compatibility of drivers To: Robert Jacoby Cc: "pgsql-jdbc@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/89 X-Sequence-Number: 23083 Depending on what you are doing it will probably work. This assumes you are only doing basic CRUD . It will only use protocol version 2. Of course there's no guarantees. It is an unintended use case. Better question is why would you not want to upgrade to the latest driver ? Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Tue, Jun 26, 2012 at 1:21 PM, Robert Jacoby wrote: > I have an app that is using the 8.2-504.jdbc3 driver. It's currently hitting > an 8.3.8 pgsql db. I would like to upgrade the database to 9.1.4. The > benefits of upgrading to the latest driver aside, is using the 8.2 driver > against a 9.1.4 database supported? If not, any idea what landmines I can > expect? > > I saw backward compatibility notes that the 9.1-902 driver is backward > compatible with 7.2 postgresql+, but nothing regarding forward compatibility > of the drivers. > > Thanks, > Bob From robert.jacoby@RACKSPACE.COM Tue Jun 26 18:36:33 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 911481927160 for ; Tue, 26 Jun 2012 15:36:33 -0300 (ADT) Received: from mx1.ord1.rackspace.com ([173.203.4.135]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjaco-0001c4-8v for pgsql-jdbc@postgresql.org; Tue, 26 Jun 2012 18:36:32 +0000 X-SBRS: None X-SenderGroup: RELAYLIST-US X-MailFlowPolicy: $RELAYED-US X-IronPort-AV: E=McAfee;i="5400,1158,6754"; a="56626848" X-IronPort-AV: E=Sophos;i="4.77,478,1336366800"; d="scan'208";a="56626848" Received: from ord1exh02.rackspace.corp ([10.12.120.26]) by mx1.ord1.rackspace.com with ESMTP/TLS/AES128-SHA; 26 Jun 2012 13:36:15 -0500 Received: from ORD1EXD04.RACKSPACE.CORP ([fe80::7ca9:7766:7f3a:1a45]) by ORD1EXH02.RACKSPACE.CORP ([fe80::8cdc:c647:5909:140f%19]) with mapi id 14.02.0298.004; Tue, 26 Jun 2012 13:36:14 -0500 From: Robert Jacoby To: Dave Cramer CC: "pgsql-jdbc@postgresql.org" Subject: Re: Forward compatibility of drivers Thread-Topic: [JDBC] Forward compatibility of drivers Thread-Index: AQHNU8ASfuMWdSS3aEmH3m8mpaFq8JcNPwWA//+um4A= Date: Tue, 26 Jun 2012 18:36:14 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.180.51] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/90 X-Sequence-Number: 23084 "Better question is why would you not want to upgrade to the latest driver?" hehe. It's not a question of "want". =3D) Bob On 6/26/12 1:27 PM, "Dave Cramer" wrote: >Depending on what you are doing it will probably work. This assumes >you are only doing basic CRUD . It will only use protocol version 2. >Of course there's no guarantees. It is an unintended use case. > >Better question is why would you not want to upgrade to the latest driver >? > >Dave Cramer > >dave.cramer(at)credativ(dot)ca >http://www.credativ.ca > > >On Tue, Jun 26, 2012 at 1:21 PM, Robert Jacoby > wrote: >> I have an app that is using the 8.2-504.jdbc3 driver. It's currently >>hitting >> an 8.3.8 pgsql db. I would like to upgrade the database to 9.1.4. The >> benefits of upgrading to the latest driver aside, is using the 8.2 >>driver >> against a 9.1.4 database supported? If not, any idea what landmines I >>can >> expect? >> >> I saw backward compatibility notes that the 9.1-902 driver is backward >> compatible with 7.2 postgresql+, but nothing regarding forward >>compatibility >> of the drivers. >> >> Thanks, >> Bob From pg@fastcrypt.com Tue Jun 26 18:39:28 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D8BE31927160 for ; Tue, 26 Jun 2012 15:39:28 -0300 (ADT) Received: from mail-gh0-f174.google.com ([209.85.160.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjafe-00077Z-Bw for pgsql-jdbc@postgresql.org; Tue, 26 Jun 2012 18:39:28 +0000 Received: by ghrr11 with SMTP id r11so249435ghr.19 for ; Tue, 26 Jun 2012 11:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=7rwR+/8QvKomQVCl+MfhGSYVMjFCiVOC9mtP4XCGIzo=; b=irTQ68rGuqAL5UU48T8RvtrtDm5g0mha4NigNQ20OJtvl0Mxyf9s0Q7Pp8cunk1kBF 1yDEGNL4VAILnBPgEIkXLu5xrudcXuq4p14f3rmbtWSTUaX+q3T0fsO9wRofOQKzN9qB ENI+Yu9/W245POyLubM3DZKf1d/VUYPjL37bVmVmF9Js9Ed2CjCFlYhAZcMi1WxM6r7V C55FGsGkbZRY7XkDy2DIPDdCLZ4yxaViAWgDOfmw+Qi9ciHIr6ZHakY6MMqqUPLEWGPP 0FesLwc+/xT4UMktW9J7hmaimnjTh41sc3qGzoSZyrfW5OsWBoKFirizkrUh0aTRoFI1 3SeQ== Received: by 10.60.2.34 with SMTP id 2mr17486656oer.71.1340735953527; Tue, 26 Jun 2012 11:39:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.27.72 with HTTP; Tue, 26 Jun 2012 11:38:53 -0700 (PDT) In-Reply-To: References: From: Dave Cramer Date: Tue, 26 Jun 2012 14:38:53 -0400 X-Google-Sender-Auth: DeWUohdNRD7QF7t3biSAjSBDzng Message-ID: Subject: Re: Forward compatibility of drivers To: Robert Jacoby Cc: "pgsql-jdbc@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/91 X-Sequence-Number: 23085 I figured as much, so what is stopping you from changing the postgresql jar ? Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Tue, Jun 26, 2012 at 2:36 PM, Robert Jacoby wrote: > "Better question is why would you not want to upgrade to the latest > driver?" > > > hehe. It's not a question of "want". =) > > Bob > > On 6/26/12 1:27 PM, "Dave Cramer" wrote: > >>Depending on what you are doing it will probably work. This assumes >>you are only doing basic CRUD . It will only use protocol version 2. >>Of course there's no guarantees. It is an unintended use case. >> >>Better question is why would you not want to upgrade to the latest driver >>? >> >>Dave Cramer >> >>dave.cramer(at)credativ(dot)ca >>http://www.credativ.ca >> >> >>On Tue, Jun 26, 2012 at 1:21 PM, Robert Jacoby >> wrote: >>> I have an app that is using the 8.2-504.jdbc3 driver. It's currently >>>hitting >>> an 8.3.8 pgsql db. I would like to upgrade the database to 9.1.4. The >>> benefits of upgrading to the latest driver aside, is using the 8.2 >>>driver >>> against a 9.1.4 database supported? If not, any idea what landmines I >>>can >>> expect? >>> >>> I saw backward compatibility notes that the 9.1-902 driver is backward >>> compatible with 7.2 postgresql+, but nothing regarding forward >>>compatibility >>> of the drivers. >>> >>> Thanks, >>> Bob > From robert.jacoby@RACKSPACE.COM Tue Jun 26 18:50:34 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 488431927160 for ; Tue, 26 Jun 2012 15:50:34 -0300 (ADT) Received: from mx1.ord1.rackspace.com ([173.203.4.135]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjaqP-0007N1-Aq for pgsql-jdbc@postgresql.org; Tue, 26 Jun 2012 18:50:33 +0000 X-SBRS: None X-SenderGroup: RELAYLIST-US X-MailFlowPolicy: $RELAYED-US X-IronPort-AV: E=McAfee;i="5400,1158,6754"; a="56628033" X-IronPort-AV: E=Sophos;i="4.77,478,1336366800"; d="scan'208";a="56628033" Received: from ord1exh02.rackspace.corp ([10.12.120.26]) by mx1.ord1.rackspace.com with ESMTP/TLS/AES128-SHA; 26 Jun 2012 13:50:20 -0500 Received: from ORD1EXD04.RACKSPACE.CORP ([fe80::7ca9:7766:7f3a:1a45]) by ORD1EXH02.RACKSPACE.CORP ([fe80::8cdc:c647:5909:140f%19]) with mapi id 14.02.0298.004; Tue, 26 Jun 2012 13:50:20 -0500 From: Robert Jacoby To: Dave Cramer CC: "pgsql-jdbc@postgresql.org" Subject: Re: Forward compatibility of drivers Thread-Topic: [JDBC] Forward compatibility of drivers Thread-Index: AQHNU8ASfuMWdSS3aEmH3m8mpaFq8JcNPwWA//+um4CAAFSQgP//r18A Date: Tue, 26 Jun 2012 18:50:19 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.180.51] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/92 X-Sequence-Number: 23086 It's a matter of finite resources. If the old driver supported the new db then we wouldn't have to redeploy the applications that use it and may be able to get away with doing smokes tests after switching the database. Redeploying is not trivial and requires quite a bit of coordination. We're also not just talking 1 app. Given that it's not supported, then we would need to do much more substantial testing to verify the way we use the old driver would still work with the newer database. At that point the amount of testing likely dwarfs the cost of redeploying the apps with the newer jar and we might as well upgrade. Bob=20 On 6/26/12 1:38 PM, "Dave Cramer" wrote: >I figured as much, so what is stopping you from changing the postgresql >jar ? > >Dave Cramer > >dave.cramer(at)credativ(dot)ca >http://www.credativ.ca > > >On Tue, Jun 26, 2012 at 2:36 PM, Robert Jacoby > wrote: >> "Better question is why would you not want to upgrade to the latest >> driver?" >> >> >> hehe. It's not a question of "want". =3D) >> >> Bob >> >> On 6/26/12 1:27 PM, "Dave Cramer" wrote: >> >>>Depending on what you are doing it will probably work. This assumes >>>you are only doing basic CRUD . It will only use protocol version 2. >>>Of course there's no guarantees. It is an unintended use case. >>> >>>Better question is why would you not want to upgrade to the latest >>>driver >>>? >>> >>>Dave Cramer >>> >>>dave.cramer(at)credativ(dot)ca >>>http://www.credativ.ca >>> >>> >>>On Tue, Jun 26, 2012 at 1:21 PM, Robert Jacoby >>> wrote: >>>> I have an app that is using the 8.2-504.jdbc3 driver. It's currently >>>>hitting >>>> an 8.3.8 pgsql db. I would like to upgrade the database to 9.1.4. The >>>> benefits of upgrading to the latest driver aside, is using the 8.2 >>>>driver >>>> against a 9.1.4 database supported? If not, any idea what landmines I >>>>can >>>> expect? >>>> >>>> I saw backward compatibility notes that the 9.1-902 driver is backward >>>> compatible with 7.2 postgresql+, but nothing regarding forward >>>>compatibility >>>> of the drivers. >>>> >>>> Thanks, >>>> Bob >> From ringerc@ringerc.id.au Wed Jun 27 06:30:44 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 044B1126090B for ; Wed, 27 Jun 2012 03:30:44 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjlly-00022T-Ny for pgsql-jdbc@postgresql.org; Wed, 27 Jun 2012 06:30:43 +0000 Received: by pbbrp8 with SMTP id rp8so1114601pbb.19 for ; Tue, 26 Jun 2012 23:30:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=N3B8rij0Q+AP4PcRcWnVNGhgS9/yHYryx2Jf2WhZDe4=; b=KAW03m7toUp2MAMCbvbWMj9v1koWvAdMyrxFP9GH5yp8p8Kk4GCI+dNbfqvQXznA7S MLXOc5WVYxzvAkLsusxxut/qpwGpOEpMNtg0Gp0wvUKFxvoSeEUR6/N+DCCjiP8BEPF7 0ws6FBQCoKHa/ZfSS04NdSViD7BXeJOU2STRJgdjtWVJ7zwlcMWHRxIb+XD0qSKSde0N EOv7MSVrbz8NZYwblYRHaN74WzRyJFVCYiVvKFx9HkVcGNhyNTOG0WoeB8oNS0M/DR+p nIl4IMjcxwxmirwUZa0YiE+4E9AKblPgYmk3uoKHykGGgQjJNdh1oFfizJhBOcDBwCjC ag/Q== Received: by 10.68.212.138 with SMTP id nk10mr60551062pbc.93.1340778630015; Tue, 26 Jun 2012 23:30:30 -0700 (PDT) Received: from wallace.localnet (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id vp4sm14205230pbc.61.2012.06.26.23.30.25 (version=SSLv3 cipher=OTHER); Tue, 26 Jun 2012 23:30:29 -0700 (PDT) Message-ID: <4FEAA87F.9080700@ringerc.id.au> Date: Wed, 27 Jun 2012 14:30:23 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Robert Jacoby CC: Dave Cramer , "pgsql-jdbc@postgresql.org" Subject: Re: Forward compatibility of drivers References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlfo3fvXkDToL/yI3l9wYu9BzDCoc2DrGvE183otXTXNDUuTY/l0YNNatO05YboQ26KN2f1 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/93 X-Sequence-Number: 23087 On 06/27/2012 02:50 AM, Robert Jacoby wrote: > It's a matter of finite resources. If the old driver supported the new db > then we wouldn't have to redeploy the applications that use it and may be > able to get away with doing smokes tests after switching the database. > Redeploying is not trivial and requires quite a bit of coordination. We're > also not just talking 1 app. > > Given that it's not supported, then we would need to do much more > substantial testing to verify the way we use the old driver would still > work with the newer database. At that point the amount of testing likely > dwarfs the cost of redeploying the apps with the newer jar and we might as > well upgrade. Yep. In particular, if your app relies on *any* JDBC metadata, either directly or via an ORM layer or similar, you'll want a driver version equal to or newer than the database version, because the pg_catalog.* schema changes somewhat from major version to major version to accomodate new features, fixes and enhancements. Old drivers won't like it when a field they expect to be there isn't, a type has changed, etc. Using an old driver may even expose you to possibly faulty data access/writes if you use bytea fields, because older drivers don't know about bytea_format and the new 'hex' default. You'll also have to change other database settings like standard_conforming_strings . If you *don't* use JDBC metadata and you can change some settings for bytea_format, standard_conforming_strings, etc on your updated databases you might be OK, but I wouldn't particularly recommend it. -- Craig Ringer