Denis Laxalde

Results 98 comments of Denis Laxalde

> It would be sad to introduce this change only in psycopg 4. It would be better to add an `async AsyncConnection.acancel()` function on the Async connection, and to make...

Patches have been committed in PostgreSQL; so I'm resuming my prior work for integration in Psycopg.

For future reference, the commit in PostgreSQL is [61461a300c1cb5d53955ecd792ad0ce75a104736](https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=61461a300c1cb5d53955ecd792ad0ce75a104736) "libpq: Add encrypted and non-blocking query cancellation routines". In addition to the original intent of making cancellation non-blocking, it also allows...

Thank you for your inputs. I'll wait for #754 to get in before getting back to the high-level interface in #763.

Ok; I've implemented most of your suggestions in #763 now, leaving appart: - `PGcancelConn.is_supported()`, as suggested above - the timeout parameter to `cancel_safe()`, as it seems to me that this...

Which version of pg_activity are you using? From the traceback you posted, it seems very very old. Can you try using a more recent version?

> Got the same... > > ``` > ~$ pg_activity -d mydb > Traceback (most recent call last): > File "/usr/bin/pg_activity", line 11, in > load_entry_point('pg-activity==2.3.1', 'console_scripts', 'pg_activity')() > [...]...

This PR was ready; but now again there are conflicts so it needs work. So before I possibly get back to it: * do we want the feature @dvarrazzo? *...