Re: libpq backwards compatbility - Mailing list pgsql-general

From Michael Paquier
Subject Re: libpq backwards compatbility
Date
Msg-id CAB7nPqSu+iqOqu-tgPrbAGSm+Lnkf+wpqVXDmQ5kCRYKakGAYQ@mail.gmail.com
Whole thread Raw
In response to libpq backwards compatbility  (Andy Halsall <andyh@live.co.uk>)
Responses Re: libpq backwards compatbility  (Andy Halsall <andyh@live.co.uk>)
List pgsql-general
On Wed, Nov 2, 2016 at 11:58 PM, Andy Halsall <andyh@live.co.uk> wrote:
> Can we assume that the 9.6 libpq library is backwards compatible with
> applications compiled against 9.3 headers? I wouldn't expect to have to
> re-compile our application against 9.6 libpq headers and redeploy because
> we're not taking advantage of any new features and nothing seems to have
> been deprecated.
>
> The release notes talk about additions to libpq in section E.2.3.9 "Client
> Interfaces". I'd expect any un-changed features to be backwards compatible.
> Limited testing suggests this is so but I can't find a clear statement.
>
> Could somebody please advise?

libpq has a long history of keeping a backward-compatible interface
across the ages, and that pays in the long term. Your application
compiled with 9.3 headers would link to libpq.so.5, so that would be
binary-compatible with 9.6. For consistency's sake, you may want to
recompile it anyway.
--
Michael


pgsql-general by date:

Previous
From: Dmitry Karasik
Date:
Subject: replication setup: advice needed
Next
From: Tom DalPozzo
Date:
Subject: WAL segmentes names in wrong order?