Am 07.06.2019 um 20:03 schrieb Justin Pryzby:
|Add libpq function to report the memory size of the query result (Lars Kanis, 
Tom Lane)
|The function is PQresultMemorySize().

We already have a ticket for this:
http://trac.vex.net:8000/pgtracker/ticket/80

pgdb has
|Cursor.coltypes
|    The list of columns types of the current result set
|The values in this list are the same values as the type_code elements in the 
Cursor.description attribute. Always use the latter if you want to remain 
standard compliant.

But I was surprised to find that pg doesn't expose anything similar.  I
wondered whether we shouldn't add interfaces for PQftype and maybe PQfmod,
pehaps by exposing query_obj->col_types.

Yes, that's really lacking. The interface has grown over time and I think originally, the focus was on the entity methods like get() and insert() and update(). You would get the types via attnames().

Created a ticket for this now:
http://trac.vex.net:8000/pgtracker/ticket/82

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

Reply via email to