MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

Allow to specify custom connection reset query builder #1146

Open dsav opened 5 months ago

dsav commented 5 months ago

The default connection reset behaviour might be an overkill for some cases e.g. when respective server capabilities are not used or resources are cleaned up explicitly before returning the connection to the pool.

This provides an opt-in way to override this default behaviour.

Also see https://github.com/MagicStack/asyncpg/issues/780