Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/cockroachdb/cockroach. Pull mirroring updated .
  1. Dec 23, 2024
  2. Dec 20, 2024
    • Marcus Gartner's avatar
      sql: add session setting for legacy VARCHAR typing behavior · eef755b6
      Marcus Gartner authored
      Release note (sql change): The `legacy_varchar_typing` session setting
      has been added, which reverts the changes of #133037 that cause the
      change in typing behavior described in #137837. Specifically, it makes
      type-checking and overload resolution ignore the newly added
      "unpreferred" overloads. This setting defaults to `on`.
      eef755b6
  3. Dec 17, 2024
  4. Dec 06, 2024
  5. Dec 02, 2024
    • Michael Erickson's avatar
      sql/stats: skip over histogram buckets for dropped enum values · 80385003
      Michael Erickson authored
      While decoding histogram upper bounds, if we discover that a physical
      representation of an enum value cannot be found in the enum type, assume
      that the value has been dropped and skip over the bucket. This allows us
      to continue using the most recent statistics after altering an enum
      type.
      
      Fixes: #67050
      
      Release note (bug fix): Fix a bug which causes the optimizer to use
      stale table statistics after altering an enum type used in the table.
      80385003
  6. Nov 26, 2024
  7. Nov 25, 2024
  8. Nov 23, 2024
  9. Nov 22, 2024
  10. Nov 21, 2024
  11. Nov 20, 2024
    • Yahor Yuzefovich's avatar
      row: mark an error from streamer as StorageError · 9c2c8053
      Yahor Yuzefovich authored
      Earlier this year we changed the vectorized panic-catcher, namely, we
      now check a few special error types (like `StorageError`,
      `notInternalError`, and `internalError` upfront - to avoid more
      expensive stack-based checks). If we find an `internalError` _and_ it
      doesn't have a PG code and doesn't have `StorageError` or
      `notInternalError` in the causes, we now always mark the error as
      assertion failure. This made it so that we started receiving more sentry
      reports than previously; in particular, whenever we're using the
      streamer API, we could now get `stop.ErrUnavailable` via the following
      sequence of calls `ColIndexJoin.Next` -> `cFetcher.StartScan` ->
      `txnKVStreamer.SetupNextFetch` -> `Streamer.Enqueue`, and this would
      trigger a sentry report. This commit fixes this by marking an error
      coming from `Streamer.Enqueue` as `StorageError` which will by-pass the
      logic in the panic-catcher.
      
      Release note: None
      9c2c8053
    • Faizan Qazi's avatar
      Merge pull request #135215 from cockroachdb/blathers/backport-release-24.2-135168 · ef9ea88d
      Faizan Qazi authored
      release-24.2: sql: validate zone config before multi region database DDL
      ef9ea88d
Loading