Am 05.10.2019 um 18:47 schrieb Justin Pryzby:
> On Sat, Oct 05, 2019 at 06:37:36PM +0200, Christoph Zwerschke wrote:
>> Are you sure you compiled that with the pgconfig.h of Postgres 12?
>> setup.py is using the includes specified by the pgconfig tool.
> The intended behavior is to hit the runtime version check and then
> return None.
> To check, I compiled against pg12 and then downgraded libpq to v10.
> Built like: PATH=/usr/lib/postgresql/12/bin:$PATH ./setup.py build
> If I hadn't, then it wouldn't have referenced PQresultMemorySize at
> all, right ?
Ah, yes, you're right. The runtime checks are useless because you can't
even load a shared library that doesn't support all the symbols that you
are referencing somewhere.
That's actually the reason why I proposed supporting a "compatible
version" option when building PyGreSQL, so that it's possible to create
PyGreSQL binaries that can be used with older libpq versions.
-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo/pygresql