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