Skip to content

Fix #406 Postgres sample won't run correctly until second time around#419

Merged
alexeyzimarev merged 2 commits intoEventuous:devfrom
dmontgomery:pr-fix-issue-406
Jul 22, 2025
Merged

Fix #406 Postgres sample won't run correctly until second time around#419
alexeyzimarev merged 2 commits intoEventuous:devfrom
dmontgomery:pr-fix-issue-406

Conversation

@dmontgomery
Copy link
Copy Markdown
Contributor

System.ArgumentException: A PostgreSQL type with the name 'bookings.stream_message' was not found in the current database info at Npgsql.Internal.NpgsqlDatabaseInfo.GetPostgresType(DataTypeName dataTypeName)

This is caused by the Npgsql internal info cache not getting updated after initial database creation. Previously, restarting the app a second time would work successfully because the info cache could see the user defined type for the booking.stream_message on the second run. Simple fix is to force the info cache to reload after database initialization

…e name 'bookings.stream_message' was not found in the current database info at Npgsql.Internal.NpgsqlDatabaseInfo.GetPostgresType(DataTypeName dataTypeName) This is caused by the Npgsql internal info cache not getting updated after initial database creation. Previously, restarting the app a second time would work successfully because the info cache could see the user defined type for the booking.stream_message on the second run. Simple fix is to force the info cache to reload after database initialization
@alexeyzimarev alexeyzimarev self-requested a review July 22, 2025 07:30
@alexeyzimarev alexeyzimarev merged commit aaf518f into Eventuous:dev Jul 22, 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

Development

Successfully merging this pull request may close these issues.

2 participants