Skip to content

Conversation

@elprans
Copy link
Member

@elprans elprans commented Mar 15, 2025

Type codec setup functions will no longer attempt to introspect the type
if it's one of the known builtin types.

Fixes: #1206
Fixes: #1138
Fixes: #1242

@elprans elprans force-pushed the avoid-introspection-on-builtin-types branch from 5cf5fc4 to e3b24a6 Compare March 15, 2025 00:59
Type codec setup functions will no longer attempt to introspect the type
if it's one of the known builtin types.

Fixes: #1206
Fixes: #1138
Fixes: #1242
@elprans elprans force-pushed the avoid-introspection-on-builtin-types branch from e3b24a6 to 9cd0867 Compare March 15, 2025 01:10
@elprans elprans merged commit 5c9986c into master Mar 15, 2025
41 checks passed
@elprans elprans deleted the avoid-introspection-on-builtin-types branch March 15, 2025 01:29
@antonmyronyuk
Copy link
Contributor

Hi @elprans! Is it possible to release a new version with removal of introspection query?

Having some issues with stucked transactions (TYPE_BY_OID) on PostgreSQL under heavy load. This update should fix such cases as well.

Thank you in advance!

@elprans
Copy link
Member Author

elprans commented Mar 31, 2025

I'll get around to cutting a release this week at some point.

@sumersao
Copy link

sumersao commented Apr 4, 2025

Thank you @elprans. We're also experiencing this, so glad to see it was resolved already! Looking forward to the release 🙏🏾

@yyuliababenko
Copy link

Hi @elprans, waiting for the new release as well!

@alex-tolstov
Copy link

Hello @elprans ! Could you please promote a new release involving those bugfixes? We'd highly appreciate it!

@dmkulazhenko
Copy link

Hi @elprans! looking forward to release 🚀

@brandfocus
Copy link

brandfocus commented Jun 26, 2025

@elprans Is a new release still planned?

For anyone looking to patch this in the interim, update your pyproject.toml to the following:

asyncpg = {git = "https://github.com/MagicStack/asyncpg.git", rev = "5c9986c4ae4e52a650b6592681ae9ea81ed2d70a"}

@candiduslynx
Copy link

@elprans any updates?

elprans added a commit that referenced this pull request Nov 24, 2025
Enable Python 3.14 with experimental subinterpreter/freethreading
support.

Improvements
============

* Add Python 3.14 support, experimental subinterpreter/freethreading support (#1279)
  (by @elprans in 9e42642)

* Avoid performing type introspection on known types (#1243)
  (by @elprans in 5c9986c)

* Make `prepare()` not use named statements by default when cache is disabled (#1245)
  (by @elprans in 5b14653)

* Implement connection service file functionality (#1223)
  (by @AndrewJackson2020 in 1d63bb1)

Fixes
=====

* Fix multi port connection string issue (#1222)
  (by @AndrewJackson2020 in 01c0db7)

* Avoid leaking connections if _can_use_connection fails (#1269)
  (by @yuliy-openai in e94302d)

Other
=====

* Drop support for EOL Python 3.8 (#1281)
  (by @elprans in 6c2c490)
@elprans elprans mentioned this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

9 participants