Run /opt/teradata/viewpoint/dcs/bin/syncOSPGTimezone.sh to sync OS and Postgres timezone of a server.
Following options are available from the script:
- View available OS timezones
- View available Postgres timezones
- Sync OS and Postgres timezone
- Check current OS and Postgres timezone
- View available OS timezonesThis option displays the list of valid OS timezones.
- View available Postgres timezonesThis option displays the list of valid Postgres timezones.
- Sync OS and Postgres timezoneThis option syncs the OS and Postgres timezones based on the timezone input.The operation checks if the OS and Postgres timezones are in sync, and process as following:
- If yes, a notification appears whether you still want to change the timezone? Typing Y/y prompts to provide the valid timezone.
- If not, a notification appears to provide the valid timezone.
- If the input is an invalid timezone or the yast software/Postgres can not access the input, an error message appears.
- If the timezone is valid, the operation syncs both OS and Postgres to the same timezone as in the input.
- Check current OS and Postgres timezoneThis option displays the current timezones of OS and Postgres.