Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCHqW-0003eA-96 for pgsql-docs@postgresql.org; Thu, 13 Sep 2012 22:25:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCHqT-0001L0-Sh for pgsql-docs@postgresql.org; Thu, 13 Sep 2012 22:25:15 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q8DMP7CM023465; Thu, 13 Sep 2012 18:25:07 -0400 (EDT) From: Tom Lane To: Sebastien FLAESCH cc: hlinnaka@iki.fi, pgsql-docs@postgresql.org Subject: Re: Details about libpq cross-version compatibility In-reply-to: <50518F47.30806@4js.com> References: <5050A86B.4080601@4js.com> <505184B6.6050008@iki.fi> <50518F47.30806@4js.com> Comments: In-reply-to Sebastien FLAESCH message dated "Thu, 13 Sep 2012 09:46:15 +0200" Date: Thu, 13 Sep 2012 18:25:07 -0400 Message-ID: <23464.1347575107@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/11 X-Sequence-Number: 7463 Sebastien FLAESCH writes: > If a future major version (for ex 9.3) implements a new strategic feature > that makes libpq headers incompatible with prior versions, what shall we > do with our convention? Shall we ship 9.x (where 0<=x<=2) drivers and 9.3+ > drivers? What if a next major version implements again another feature > that makes headers incompatible again? We've never done that AFAIR. When and if it happens, that would be the time to deal with it. > I think I am asking for is an official statement that clearly says that > libpq headers are only compatible for a given set of minor versions, like > (8.4.1, 8.4.2, 8.4.3, ...) or (9.2.1, 9.2.2, ...) > I believe also that the libpq library should automatically check for > compatiblity, based on PG_MAJORVERSION definition in pg_config.h ... It seems highly undesirable to me that we should intentionally break cross-version compatibility, which is what you seem to be proposing. regards, tom lane