Skip to content

[9.2] Fix PostgreSQL IP address serialization error (#3900)#3904

Merged
Apmats merged 2 commits into9.2from
backport/9.2/pr-3900
Jan 13, 2026
Merged

[9.2] Fix PostgreSQL IP address serialization error (#3900)#3904
Apmats merged 2 commits into9.2from
backport/9.2/pr-3900

Conversation

@Apmats
Copy link
Contributor

@Apmats Apmats commented Jan 12, 2026

Manually backporting the work from the following PR to 9.2:

I think auto backport should work for these versions and so I can avoid seeking reviews for the other branches. 😁

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:01
@Apmats Apmats changed the title [PostgreSQL] Add serialization support for PostgreSQL special types [9.2] Fix PostgreSQL IP address serialization error (#3900) Jan 12, 2026
@Apmats Apmats merged commit cb86d67 into 9.2 Jan 13, 2026
2 checks passed
@Apmats Apmats deleted the backport/9.2/pr-3900 branch January 13, 2026 12:40
Apmats added a commit that referenced this pull request Jan 13, 2026
Manually backporting the work from the following PR to 8.19:
 - Fix PostgreSQL IP address serialization error (#3900)

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.
Apmats added a commit that referenced this pull request Jan 13, 2026
Manually backporting the work from the following PR to 9.1:
 - Fix PostgreSQL IP address serialization error (#3900)
 
 
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.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants