I had a similar problem after updating the timezone information, i.e. loading the IANA database and compiling using zic.
My problem actually started after restarting PostgreSQL. I received an invalid value for parameter TimeZone: UTC and restarting again did not help to solve the problem.
It turns out that the information about my time zone was completely corrupted after the update. I had dangling symbolic links in /usr/share/zoneinfo . From the psql console, I got:
mydb=# SELECT * FROM pg_timezone_names; ERROR: could not stat "/usr/share/zoneinfo/PRC": No such file or directory
I removed all such dangling symbolic links. After that, at least I could get SELECT * FROM pg_timezone_names to work, but still got the same invalid value... error.
What finally solved the problem for me was creating a new symbolic link:
cd /usr/share/zoneinfo ln -s Etc/UTC UTC
After that, SET time zone 'UTC' worked correctly.
Jong Bor Lee Apr 02 '19 at 23:05 2019-04-02 23:05
source share