https://github.com/cockroachdb/cockroach/pull/75971 --- Release note (sql change): Previously, WITH (param=value) syntax is not allowed for primary key. However, that does not align with postgresql. Also, to support WITH (bucket_count=...) syntax for hash sharded index, we need to enable it as well. This pr also adds extra validation to prevent existing storage params from being applied to primary keys. Which means, even the syntax is accepted by the parser, none of existing storage param for inverted index is allowed on primary key. We don't actually set those params on top of PKs internally, but we need to tell user which param is supprted or not. Eventually, when we add support for bucket_count param, a param white list will be maintained for PKs.
Exalate commented:
https://github.com/cockroachdb/cockroach/pull/75971 --- Release note (sql change): Previously,
WITH (param=value)
syntax is not allowed for primary key. However, that does not align with postgresql. Also, to supportWITH (bucket_count=...)
syntax for hash sharded index, we need to enable it as well. This pr also adds extra validation to prevent existing storage params from being applied to primary keys. Which means, even the syntax is accepted by the parser, none of existing storage param for inverted index is allowed on primary key. We don't actually set those params on top of PKs internally, but we need to tell user which param is supprted or not. Eventually, when we add support forbucket_count
param, a param white list will be maintained for PKs.Jira Issue: DOC-2517