graph-node
graph-node copied to clipboard
store/postgres: warn if locale is not en_US.utf8
Check for user's locale on startup and if it is not en_US.utf8 panic.
Closes #3118
We need a guide for what an indexer should do when encountering this error, and the error message should link to that guide.
@saihaj from discussion with @leoyvens , I think we may want to make the error message a bit more informative (i.e. directing the user to change their DB locale to match, or change the env variable)
Here's how I think we should try and manage using the same locale for all indexers. We'll probably be stuck on en_US.UTF-8 because there are fewer indexers that need to change, though C would be more preferable for performance.
- Communicate a timeline and some writeup on what indexers need to do
- Print a warning when the locale is not the specified one for a while (probably months, definitely two releases)
- Switch to enforce the locale, i.e., the current behavior of panicking on startup
This pull request hasn't had any activity for the last 90 days. If there's no more activity over the course of the next 14 days, it will automatically be closed.
https://github.com/graphprotocol/graph-node/pull/4163