Skip to content

[9.1] Fix PostgreSQL IP address serialization error (#3900)#3905

Merged
Apmats merged 3 commits into9.1from
backport/9.1/pr-3900
Jan 13, 2026
Merged

[9.1] Fix PostgreSQL IP address serialization error (#3900)#3905
Apmats merged 3 commits into9.1from
backport/9.1/pr-3900

Conversation

@Apmats
Copy link
Contributor

@Apmats Apmats commented Jan 12, 2026

Manually backporting the work from the following PR to 9.1:

I thought doing #3904 would backport even when merging to something that's not main, but apparently I was wrong, so handling in separate PRs.

Backport of PR #3900 to 9.2

PostgreSQL connector uses asyncpg which returns special Python objects for certain
PostgreSQL data types. These need to be serialized to strings before indexing:
- Network types (INET, CIDR) -> ipaddress module objects
- UUID type -> uuid.UUID objects
- Geometric types (POINT, LINE, POLYGON, etc.) -> asyncpg.types objects
- BitString type (BIT, VARBIT) -> asyncpg.types.BitString objects
@Apmats Apmats requested a review from a team as a code owner January 12, 2026 13:18
@Apmats Apmats closed this Jan 12, 2026
@Apmats Apmats deleted the backport/9.1/pr-3900 branch January 12, 2026 13:25
@Apmats Apmats reopened this Jan 13, 2026
@Apmats Apmats enabled auto-merge (squash) January 13, 2026 15:51
@Apmats Apmats merged commit 6b18a05 into 9.1 Jan 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants