Databases · Junior · Question 40 of 75
Which type should you usually use for timestamps in PostgreSQL?
- 1
textin ISO format - ✓Correct answer:
timestamptz(timestamp with time zone) - 3
timestamp(without time zone)
Explanation
timestamptz stores an absolute moment (in UTC) and converts to the session time zone on output. Plain timestamp has no zone, so its meaning is ambiguous.