[QGIS-Developer] Catch PostgreSQL logs in pyqgis

Matteo Ghetta matteo.ghetta at gmail.com
Mon Mar 4 08:54:57 PST 2024


Hi devs,

I'm looking for a way in pyqgis to catch the (raw) queries that QGIS is 
sending to the PostgreSQL provider when a table is edited: for example 
the raw "INSERT ... INTO ...", "UPDATE ...".

Basically what the Development Panel is listing when enabled. Is there a 
way in pyqgis?

Cheers and thanks for any suggestion!

Matteo



More information about the QGIS-Developer mailing list