Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle exception when timezone is
localtime
(#2264)
The configuration property `timezone` in `postgresql.conf` can be set to a special value of `localtime` to indicate that PosgreSQL should use the timezone of the host system. Unfortunately, when this value is set, we do not have sufficient information to determine the actual timezone of the server because `SHOW timezone` itself returns `localtime`. This value is not well-documented, but is also unlikely to be encountered very often, so we identify the exception and construct a new `TimeZoneNotFoundException` with a more informative message that includes mitigations that can be applied on either the server or the client. See: npgsql/efcore.pg#578
- Loading branch information
1 parent
f60e2a0
commit 140c1b4
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters