Skip to content

Comments

Make LoadTypes query easier to support on "postgres-like" servers#2504

Merged
jackc merged 2 commits intojackc:masterfrom
JelteF:modify-loadtypes
Feb 20, 2026
Merged

Make LoadTypes query easier to support on "postgres-like" servers#2504
jackc merged 2 commits intojackc:masterfrom
JelteF:modify-loadtypes

Conversation

@JelteF
Copy link
Contributor

@JelteF JelteF commented Feb 14, 2026

I'm working with one of the many Postgres "compatible" servers, and making this small change to the query from the LoadTypes function makes it "just work". It was not needed to use the simple protocol for this query, it was only necessary for the results to use text encoding.

I'm working with one of the many Postgres "compatible" servers, and
making this small change to the query from the `LoadTypes` function
makes it "just work". Afaict there was no reason to use the simple
protocol for this query.
@jackc
Copy link
Owner

jackc commented Feb 15, 2026

See the CI test failures. It seems that some of the returned values must be in text format. That was probably the reason for using the simple protocol. You might be able to use QueryResultFormats to fix the issue.

@JelteF
Copy link
Contributor Author

JelteF commented Feb 15, 2026

Oops sorry, fixed now.

@jackc jackc merged commit 0be0344 into jackc:master Feb 20, 2026
14 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.

2 participants