Skip to content

Commit fd50f23

Browse files
committed
sql: remove citext from versions previous to 25.3
This PR adds CITEXT as an unsupported type for older versions. CITEXT is only supported on versions 25.3 and up. Fixes: None Epic: None Release note: None
1 parent 99d44a0 commit fd50f23

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

pkg/sql/logictest/testdata/logic_test/citext

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# LogicTest: !local-mixed-25.2
2+
13
query T
24
SELECT pg_typeof(CITEXT 'Foo')
35
----

pkg/sql/logictest/tests/local-mixed-25.2/generated_test.go

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/sql/sem/eval/unsupported_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,11 @@ func (tc *unsupportedTypeChecker) CheckType(ctx context.Context, typ *types.T) e
5252
"%s not supported until version 25.2", typ.String(),
5353
)
5454
}
55+
if (typ.Oid() == oidext.T_citext || typ.Oid() == oidext.T__citext) &&
56+
!tc.version.IsActive(ctx, clusterversion.V25_3) {
57+
return pgerror.Newf(pgcode.FeatureNotSupported,
58+
"%s not supported until version 25.3", typ.String(),
59+
)
60+
}
5561
return nil
5662
}

0 commit comments

Comments
 (0)