-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: remove/hide support for TIMETZ #28095
Conversation
33c977e
to
3893974
Compare
cc @rmloveland |
@petermattis just suggested an alternate approach which I will try shortly. |
3893974
to
c711d97
Compare
So the attempt was to keep the datum type but remove the table encoding (which was blatantly wrong) However the datum type was also wrong actually -- the package So I have opted for a full removal. We can always consider a revert later if we want to restore the functionality, e.g. on the |
c711d97
to
e4b464b
Compare
This patch removes the support for TIMETZ that was previously introduced in the 2.1 branch. The protobuf ID for table schemas remains reserved, however any attempt to access a TIMETZ column in existing tables will cause a node to panic. Tables containing TIMETZ columns must be completely dropped, they cannot be recovered. Release note (backward-incompatible change): Support for PostgreSQL's TIMETZ data type is removed because it was incomplete/incorrect. This was a feature only available in previous 2.1-alpha releases but not any stable release, and thus was experimental anyways. Tables previously created with the TIMETZ data type must be dropped entirely -- it is not possible to convert the data or drop a single TIMETZ column.
e4b464b
to
7c7e748
Compare
bors r+ |
28095: sql: remove/hide support for TIMETZ r=knz a=knz Fixes #25224. This patch removes the support for TIMETZ that was previously introduced in the 2.1 branch. The protobuf ID for table schemas remains reserved, however any attempt to access a TIMETZ column in existing tables will cause a node to panic. Tables containing TIMETZ columns must be completely dropped, they cannot be recovered. Release note (backward-incompatible change): Support for PostgreSQL's TIMETZ data type is removed because it was incomplete/incorrect. This was a feature only available in previous 2.1-alpha releases but not any stable release, and thus was experimental anyways. Tables previously created with the TIMETZ data type must be dropped entirely -- it is not possible to convert the data or drop a single TIMETZ column. cc @awoods187 Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
Build succeeded |
Fixes #25224.
This patch removes the support for TIMETZ that was previously
introduced in the 2.1 branch.
The protobuf ID for table schemas remains reserved, however any
attempt to access a TIMETZ column in existing tables will cause a node
to panic. Tables containing TIMETZ columns must be completely dropped,
they cannot be recovered.
Release note (backward-incompatible change): Support for PostgreSQL's
TIMETZ data type is removed because it was incomplete/incorrect. This
was a feature only available in previous 2.1-alpha releases but not
any stable release, and thus was experimental anyways. Tables
previously created with the TIMETZ data type must be dropped entirely
-- it is not possible to convert the data or drop a single TIMETZ
column.
cc @awoods187