Skip to content

feat(c/driver/postgresql): use preinitialized type resolver - #4775

Open
lidavidm wants to merge 9 commits into
apache:mainfrom
lidavidm:gh-4749
Open

feat(c/driver/postgresql): use preinitialized type resolver#4775
lidavidm wants to merge 9 commits into
apache:mainfrom
lidavidm:gh-4749

Conversation

@lidavidm

@lidavidm lidavidm commented Sep 11, 2026

Copy link
Copy Markdown
Member

When a certain option is set, then we don't query the database for type information at all and instead rely on a hardcoded table generated from Postgres. Currently, we don't try to implement any sort of smart fallback.

Closes #1755.

- Ship a hardcoded type resolver, eliminating queries on the
  first connect
- [ ] Add tests that this resolves the same entries as before
- [ ] Document the option
- [ ] Add ability to build the table when needed

Closes apache#4749.
@lidavidm
lidavidm marked this pull request as ready for review September 11, 2026 12:12
@lidavidm

Copy link
Copy Markdown
Member Author

I still need to figure out what's going on with CrateDB but otherwise this is working.

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.

Initial connection to postgres very slow when number of OIDs is large

1 participant