How can I set my column to always be in βPSTβ by default?
This is impossible / misunderstanding. The timestamp column is not in the time zone. The time zone is never saved, even for timestamp with time zone ( timestamptz ), which always saves UTC time. This name is a little mistaken, I will give it to you.
You have two very simple options:
- Save
now() in the timestamptz column. - Save
now() in the timestamp column. (The time zone offset is trimmed to cast.)
If you want timestamps to be displayed for the "PST" time zone, set the time of your session for the time zone in this time zone (if it is not already set). For instance:
SET timezone='America/Anchorage'
Details in this answer:
To find your time zone name:
If you want to keep the original time zone for input values:
source share