Use time
instead of timetz
when adding Time columns
#4298
Labels
good first issue
Everything in "Help wanted", PLUS being relatively easy and straightforward to implement.
help wanted
Community contributors can implement this
ready
Ready for implementation
type: enhancement
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Context
PostgreSQL strongly recommends against using the timetz type (aka
time with time zone
).From https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_timetz
From https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-TIMEZONES
From https://www.postgresql.org/docs/17/functions-datetime.html#FUNCTIONS-DATETIME-ZONECONVERT
In Mathesar
As far as I can tell, there are three different ways the user can end up creating a Time column from Mathesar:
Casting a text column to Time.
Importing a CSV containing time data.
Adding: a new column to a table and selecting the Time type during column creation.
When casting and importing, Mathesar defaults to
time without time zone
. Good.But when adding a column to an existing table, Mathesar defaults to
time with time zone
.I think we should change this default for newly-added columns to
time without time zone
.This is a frontend issue because it's the front end that sends chooses the DB type when adding a new column.
The text was updated successfully, but these errors were encountered: