On Sat, Oct 05, 2019 at 06:37:36PM +0200, Christoph Zwerschke wrote:
> >|$ PYTHONPATH=build/lib.linux-x86_64-2.7/ python2.7 -c "import pg; print 
> >pg.DB('postgres').query('SELECT generate_series(1,9999)').memsize()"
> >|Traceback (most recent call last):
> >|  File "<string>", line 1, in <module>
> >|  File "pg.py", line 27, in <module>
> >|    from _pg import *
> >|ImportError: /home/pryzbyj/src/pygres/build/lib.linux-x86_64-2.7/_pg.so: 
> >undefined symbol: PQresultMemorySize
> 
> 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 ?

Justin
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to