Skip to content

Releases

stable-261022

Choose a tag to compare

@ronh-rs ronh-rs released this 22 Oct 21:02

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 70cceee: Fixed the PostgreSQL RowDescription so a column's type modifier, such as the precision and scale of a numeric value, matches the upstream's in proxied, shallow cache, and deep cache results.
  • bc400d2: PostgreSQL CIDR values are now supported when shallow caches are accessed over the extended query protocol.
  • 53f6366: Readyset now refuses and proxies the same row operations that the upstream refuses. Refused forms include comparisons with non-row values, comparisons between rows of different sizes, and arithmetic operations on rows.
  • d4c8cd5: Readyset now caches row comparisons that mix literals and columns, such as ('a', b) = ('c', 'd'), instead of refusing them with an error about placeholders.
  • 252e491: Readyset now caches row comparisons written with literals or placeholders on the left, such as ($1, $2) = (a, b), as lookups.
  • 4a231cf: Added dual-password support for MySQL deployments. ALTER READYSET MODIFY USER ... RETAIN CURRENT PASSWORD keeps the old password valid alongside the new one, and ... DISCARD OLD PASSWORD retires it. Naming a user twice in --allowed-users starts a deployment mid-rotation. The readyset.users view reports rotations in progress in a new has_old_password column.
  • cea2138: Improved throughput for queries sent as text, which previously serialized on the schema catalog lock.
  • 62dcdff: Changed the default --memory-limit from unlimited to 80% of the memory available to Readyset (the container limit, if set). Set --memory-limit to 0 to keep the previous unlimited behavior.
  • 4130517: The shallow cache now uses half of --memory-limit in deep and deep-then-shallow cache modes when --shallow-memory-percent is not set. It was previously unbounded in these modes.
  • 0fadb35: Readyset now returns rows written after the first read for a cache that joins a subquery containing DISTINCT, GROUP BY, or LIMIT to a table.
  • 3db1563: Readyset now serves a prepared statement whose parameter is compared against a join key that the query projects under an alias, instead of proxying it.
  • fd94ee3: Readyset now returns every row selected by a subquery with ORDER BY and LIMIT when the query filters or joins on it.
  • 7463e04: Readyset now serves a MySQL cache created with ? placeholders instead of sending its reads to the upstream.
  • 65daac0: CREATE CACHE and EXPLAIN CREATE CACHE statements are now rejected with an error when the session is connected to the readyset schema.
  • 1d8f8e6: Added an admin SQL port. Admin sessions connect to the readyset schema and cannot run queries against the upstream database. Configure the port with --admin-address (default: "127.0.0.1:6036") and --admin-credentials (default: "admin:admin"). The port can be disabled via --admin-address disabled.
  • 8decac7: Added the ALTER READYSET SHUTDOWN [RESET] command, which can only be executed via the admin port.
  • d030b62: PostgreSQL built-in point values are now supported when shallow caches are accessed over the extended query protocol.
  • 5a2e886: PostgreSQL box values are now supported when shallow caches are accessed over the extended query protocol.
  • 5ebf356: PostgreSQL path values are now supported when shallow caches are accessed over the extended query protocol.
  • 5b82241: Improved throughput for queries sent as text, which previously serialized on a shared lock.
  • 69a69d5: Fixed an issue that prevented Readyset from starting in shallow mode with RLS enabled against a PostgreSQL upstream whose certificate is signed by a private CA.
  • 3f7ef66: --upstream-db-url and --cdc-db-url now accept a comma-separated list of MySQL servers, each with an optional |<weight> suffix.
  • c659407: Added --upstream-connect-timeout, which limits how long the adapter waits for an upstream connection to be established.
  • 3f31159: Removed a query to the upstream MySQL database that was issued for every new client connection.
  • 63512f1: Added --listen-backlog (default: 4096). Readyset previously queued at most 128 pending connections per listen address, so connection bursts could leave clients stalled until their connection timeout.
  • cf26ddc: Fixed an issue that could cause MySQL TLS connections to hang indefinitely during the handshake under load.
  • f706aa6: Added --client-connect-timeout-ms. MySQL clients that do not complete the handshake within this timeout (default: 10 seconds) are disconnected.
  • 3d1cc5d: PostgreSQL clients that do not complete the handshake within --client-connect-timeout-ms (default: 10 seconds) are disconnected.
  • 1ef16f3: Queries with an unqualified column that matches several tables are now rejected, as they are in MySQL and PostgreSQL. Names in USING, ORDER BY, GROUP BY, and HAVING are now resolved as they are in those databases.
  • 77e2c28: Deep caches created using a query ID from SHOW PROXIED QUERIES, via CREATE CACHE FROM <query id>, are now recreated on restart.
  • 1d1def7: Fixed a bug that disconnected MySQL clients using prepared statements to read a deep cache when the query involved a NOT NULL column on the right side of a LEFT JOIN, or a view containing a UNION ALL query where a column was NULL in one branch and NOT NULL in another.
  • 1d1def7: Fixed the metadata returned for columns read from a deep cache by a query that reads from a view containing a UNION ALL. For MySQL, we now correctly omit the PRI_KEY, UNIQUE_KEY, AUTO_INCREMENT, and NO_DEFAULT_VALUE column definition flags instead of picking the flags based on one of the UNION ALL branches. For PostgreSQL, we now correctly return type modifier metadata for a column only if it is the same across all UNION ALL branches, instead of picking it arbitrarily from a single branch.
  • d992004: Fixed the propagation of MySQL column definition flags and length information, and PostgreSQL row description fields, for deep caches of queries that have a LIMIT. This issue could cause type-casting problems with some MySQL drivers that expected to cast a TINYINT(1) to a boolean but instead received an incorrect default width of TINYINT(4).
  • 5ef2a8f: Added replication of MySQL tables with ZEROFILL columns and basic deep cache support for queries that use the column as a key or in a comparison.
  • cd3e647: Added deep cache support for MySQL ZEROFILL columns in the result set, with the same zero padding as in MySQL.
  • 67a5ef1: Fixed an issue that prevented queries over a view created after Readyset started from ever being shallow cached on a PostgreSQL upstream.
  • c5e257d: Fixed an issue that caused shallow cache entries to be shared between sessions with differing values for several session variables that affect query results.
  • 183a9e6: Setting sql_auto_is_null to a true value is now treated as an unsupported SET statement.
  • b9540a3: Fixed an issue that caused shallow cache entries to be shared between PostgreSQL sessions with differing timezone_abbreviations or intervalstyle settings.
  • 308ab73: Fixed an issue that caused shallow cache entries to be shared between PostgreSQL sessions with differing default_text_search_config settings.
  • f8813de: Added support for integer arithmetic when setting session variables that change query results (e.g., SET group_concat_max_len = 3 * 1024).
  • e305fe1: Shallow cache entries are now keyed on the MySQL upstream's global values of the session variables that affect results, as of the latest health check.
  • a8ca531: Shallow cache entries are now keyed on the IntervalStyle that a PostgreSQL connection inherits from the upstream.
  • 0d73ab2: Limited the query logger's backlog to 65,536 events; events beyond that limit are dropped and counted in the new readyset_query_log_dropped_events metric.
  • c857c36: Key column DDL now renders names without qualification to match MySQL and PostgreSQL. Also suppressed some warning logs that incorrectly implied we would re-snapshot all tables on restart if any table with a FOREIGN KEY existed.

stable-260924

Choose a tag to compare

@ronh-rs ronh-rs released this 24 Sep 18:49

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 76ea486: Fixed an issue where a row comparison lost its predicate, widening the query to the entire table. Also fixed prepared row comparisons being advertised to clients as taking no parameters.
  • 141b8be: Fixed an issue in MySQL deployments where row comparisons converted their operands as whole rows, causing a number and a numeric string to compare as unequal. Also fixed NULL values within rows being compared as ordinary values.
  • 18f73c1: Return transient SQL error codes for transient errors, signaling to clients and proxies that it is safe to automatically retry the query. Readyset now returns error code 1317 (query interrupted) for MySQL and 55000 (database object not in prerequisite state) for PostgreSQL.
  • 1e37546: When a required table is missing during deep cache creation, Readyset now returns a dialect-specific “table not found” error code—1146 for MySQL and 42P01 for PostgreSQL—instead of a generic error code.
  • 12a9c30: Schema-generation mismatch errors are now reported as transient, allowing clients and proxies to automatically retry the query.
  • c8edfde: Fixed an issue in PostgreSQL deployments where execution that populated a shallow cache through a named prepared statement returned binary-encoded values to clients that requested text format.
  • 984fcbf: Fixed an issue in PostgreSQL deployments that encoded and decoded bytea values in an incorrect format.
  • 1357216: Fixed an issue where a prepared statement planned for a shallow cache returned an error after that cache was dropped. The statement now proxies upstream until the cache is re-created.
  • 2109398: Fixed a crash in CREATE CACHE queries with a very large LIMIT.
  • 450653d: Clients whose session setup fails against the upstream now receive an error instead of a closed connection.
  • 12945f3: Sessions using different collations now create separate shallow-cache entries, ensuring correct sorting.
  • 3f96c8d: Improved handling of replicated CREATE TABLE IF NOT EXISTS statements that name a table Readyset already replicates.
  • 4464db7: Fixed a race condition in which an adapter reconnecting during DDL could briefly use an outdated schema, causing CREATE CACHE to fail during a window of a few milliseconds.
  • 690f449: PostgreSQL tables with generated columns now appear in SHOW READYSET ALL TABLES as not replicated with the correct reason.
  • b8fb98c: Fixed an issue where the adapter and server wrote upstream, CDC, and client passwords to startup logs in clear text. Passwords now appear as "<redacted>".
  • a9a1b47: Added support for replicating DROP DATABASE statements from a MySQL upstream.
  • 438f361: Shallow-cache queries are now displayed with ? placeholders for MySQL, rather than the numbered placeholders ($1, $2, etc.) used by PostgreSQL.
  • 1f5766a: Deep-cache queries are now displayed with ? placeholders for MySQL, rather than the numbered placeholders ($1, $2, etc.) used by PostgreSQL.
  • d30f5c4: Render shallow-cache query placeholders as ? when the upstream database is MySQL.
  • d30f5c4: Fixed recreation on restart of shallow caches created through the --auto-cache argument or CREATE CACHE hints.
  • 012ab5e: Added support for SHOW WARNINGS in MySQL deployments.
  • a94908c: Fixed an issue with the ACL probe that could incorrectly disable shallow caches when Readyset’s parameterization differed from valid query-placeholder positions on the upstream.
  • 364c866: Recreate on restart shallow caches created from query IDs listed in SHOW PROXIED QUERIES, such as with CREATE CACHE FROM <query id>.
  • 932ca8c: EXPLAIN CACHES now renders query placeholders in valid positions for CREATE SHALLOW CACHE statements.
  • 66968a2: EXPLAIN CACHES now prefixes each CREATE SHALLOW CACHE statement with USE <db>; for MySQL or SET search_path = <schema>; for PostgreSQL. This makes it easier to copy and paste output to recreate shallow caches when multiple databases or schemas are involved.

stable-260827

Choose a tag to compare

@ronh-rs ronh-rs released this 27 Aug 18:25

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 8b5429f: Removed a small race window in shallow-cache coalescing that allowed misses in rapid succession to bypass the mechanism and query the upstream without waiting. A sudden burst of queries that would all miss now properly coalesces into a single upstream query.
  • 218d7dc: Replication errors now name the failing column, identify the offending row by its primary key, and include the underlying cause instead of just a column index.
  • 7064267: PostgreSQL caches can now project ROW constructors, returning them as record values in both text and binary wire formats.
  • f6d3faf: Fixed jsonb_set and jsonb_insert to accept a text-literal path argument, such as '{k}'.
  • 20403b5: Fixed a panic on WHERE clauses of the form NOT ((NOT a) AND <non-negatable expression>).
  • 7c2cb9f: Fixed an HY000 error when a MySQL query returned a date or time value through a text-typed result column, such as IFNULL(datetime_col, text_literal).
  • 886c6fd: Added ACL capability: with authentication enabled, shallow-cache reads now enforce the connecting user's upstream authorization, so a user who lacks access to a table is no longer served its cached rows.
  • ce2355c: Fixed the session collation for proxied queries to follow the collation advertised by the client in its connection handshake, matching a direct MySQL connection.
  • ff3c59a: Fixed cached results for sessions using the utf8mb3 character set to convert supplementary characters to ?, matching MySQL.
  • 835d153: Users can now connect to the readyset schema (USE readyset on MySQL or SET search_path = readyset on PostgreSQL) to inspect and manage Readyset even when the upstream database is down.
  • aa20080: Fixed PostgreSQL's ->>, #>>, and json_extract_path_text operators from returning extracted values with their JSON quoting intact. A stored string now returns as value rather than "value", and a JSON null now returns as SQL NULL rather than the text null.
  • d51123a: Fixed some text casting and coercion under PostgreSQL to follow PostgreSQL's own input functions, so values are parsed or rejected as they are upstream. Casts to boolean and the elements of an array are affected.
  • bad7376: Fixed the utf8mb4_general_ci, utf8mb4_unicode_ci, and utf8mb3_unicode_ci collations so accented and unaccented equivalents match in point lookups and GROUP BY queries as they do in MySQL. A resnapshot is necessary for deep caching.
  • 8279fe8: Fixed LIKE with case-insensitive collations to match upstream MySQL.
  • 456d93c: Fixed dropped client connections when the client's handshake collation is not supported by the upstream, such as when MySQL 8.x clients connect through Readyset to a MySQL 5.7 server. Readyset now falls back to a collation supported by the upstream.
  • d0c67a2: Reduced the CPU overhead of query logging by batching event processing and using a cheaper wakeup mechanism for the query logger thread.
  • a7ce9c3: Reduced adapter CPU usage for shallow-cached queries by computing each query's ID once per request instead of on every status-cache access.
  • b2fdb18: Improved MySQL response-write performance under concurrency by fixing write-buffer reuse to select correctly sized buffers and removing a redundant sort on every flush.
  • 5bb09f2: Improved adapter throughput under high concurrency by removing a per-query status-cache lock acquisition for queries served from the shallow cache.
  • 1c927fa: Added --runtime-shards to the adapter, which spreads client connections across additional runtimes so connection readiness no longer funnels through a single I/O thread. This increases read throughput for workloads with many concurrent connections. Size the added runtimes with --shard-worker-threads. The default of 0 preserves the previous single-runtime behavior.
  • 2f2ee89: Reduced the per-query cost of building reader lookup keys and changed a possible panic on a missing key-column type into an error.
  • dcae690: Reduced per-query tracing overhead in the adapter by no longer attaching the client address to every log record emitted while serving a connection. Log sites where the peer address matters still include it.
  • 57ae178: Reduced the CPU spent hashing on the read path by switching per-query view and reader lookups to a faster hash function.
  • d57bffc: Fixed casting to an array type written as t ARRAY under PostgreSQL, which was previously treated as a cast to t. This spelling now also parses wherever a type is written, not only after CAST(... AS ...).
  • ff51577: Readyset now supports the IS [NOT] DISTINCT FROM binary operators.

stable-260730

Choose a tag to compare

@ronh-rs ronh-rs released this 31 Jul 00:22

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • a8a3644: Hint-based cache creation now honors an explicit cache name in /*rs+ CREATE SHALLOW CACHE <name> */; previously, the named form was silently ignored and no cache was created.
  • 31ea3f7: Fix a row-level security bypass where a rejected SET ROLE could still change which cached rows a session was served.
  • bce1b86: Readyset now applies a LIMIT with no ORDER BY inside the cache by lowering it to a TopK node in the graph, storing only the limited rows instead of the full result. Caches created with LIMIT 10, for example, will stop serving queries with literal values other than 10.
  • 3daaf72: Fixed FLOAT + DOUBLE arithmetic silently truncating to single precision; the result is now computed and returned as DOUBLE, matching upstream Postgres and MySQL.
  • e5ef5aa: Fixed a panic when coercing a timestamp value to boolean, which could crash the reader during key remapping.
  • 743af4f: Fixed the CREATE CACHE support check so that several classes of queries are now cacheable, whereas before we would have falsely treated such queries as unsupported and refused to cache them.
  • 88736fe: Fixed shallow-cache auto-creation to admit MySQL aggregate and window functions (COUNT, SUM, ROW_NUMBER, and others) and PostgreSQL functions added after PostgreSQL 13 (bit_xor, any_value, and 155 others), both of which previously never auto-cached under --auto-cache.
  • 9b2c4a5: Added the --rls-poll-interval-secs option (RLS_POLL_INTERVAL_SECS) to configure how often the Postgres RLS catalog is polled for policy changes. Defaults to 60 seconds.
  • cf83ced: EXPLAIN LAST STATEMENT now reports the shallow cache's name on a hit, matching what it already reports for a deep cache hit.
  • c2cbc5f: EXPLAIN LAST STATEMENT reports a shallow-cache miss as readyset_then_upstream(<cache>) with reason shallow cache miss, instead of a plain upstream result that is indistinguishable from a real bypass. Its second column is renamed from Readyset_error to Readyset_reason and now reports non-error reasons too.
  • ce7fbdc: Allow queries with PostgreSQL row constructors in auto-caching mode, for example SELECT ROW(1, 2, 3).
  • 4155637: SHOW PROXIED QUERIES now lists queries that Readyset declined to cache automatically, with readyset_supported reading skipped: <reason>.
  • 94839c6: Fixed connection drops for MySQL clients that negotiate a latin1 or cp850 handshake charset and send queries containing non-ASCII characters. Query text is now decoded according to the client's character set.
  • 02a6b97: Fixed MySQL clients switching character sets with SET NAMES or SET character_set_client. Statements sent after the switch are now decoded in the selected character set instead of being treated as UTF-8.
  • 71f6f5c: Fixed proxied query results for MySQL clients that negotiate a latin1 or cp850 handshake charset so that result rows are returned in the client's character set.
  • 8218e91: Handle non-UTF-8 encodings in shallow caching.
  • c79c686: Fixed prepared-statement string parameters sent by MySQL clients using a latin1 or cp850 character set.
  • bc83b2d: Fixed column names in result-set metadata so they are returned in the client's character set instead of raw UTF-8 bytes.

stable-260720

Choose a tag to compare

@ronh-rs ronh-rs released this 21 Jul 01:08

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 6f43c07: Interactive MySQL clients (such as the mysql CLI) now have their CLIENT_INTERACTIVE capability forwarded to the upstream connection, so their sessions honor interactive_timeout rather than wait_timeout.
  • 67859fc: Stopped dropped shallow caches from reappearing after an adapter restart, and stopped the persisted cache DDL list from growing after repeated create-and-drop cycles of the same cache.
  • 6713d3e: Shallow cache refresher connections now report the program/application name READYSET_SHALLOW_REFRESHER to the upstream database, making them identifiable in pg_stat_activity (PostgreSQL) and performance_schema.session_connect_attrs (MySQL).
  • 9435cb9: Fixed shallow caches not serving traffic after an adapter restart.
  • 14fdce2: The SHOW READYSET STATUS command now reports some information about the host Readyset is running on, such as CPU count, RAM capacity, and disk capacity.
  • ee10242: Reduced CPU load for shallow cache workloads by approximately 75% by disabling the legacy nom-sql parser when running Readyset with the now-default --cache-mode shallow.
  • a324257: Fixed hint-created shallow caches from losing sub-second COALESCE windows after an adapter restart.
  • f881244: Added Prometheus gauges for adaptive shallow caches: actual refresh load, baseline refresh load, and over-cap state, labeled by query ID.
  • 4ea6799: Added a Prometheus gauge for the refresh scheduler queue depth of scheduled shallow caches, labeled by query ID.
  • a936d79: Added Prometheus metrics for shallow cache COALESCE waits: a wait-time histogram and resolved/timeout outcome counters, labeled by query ID.
  • bd0963e: Added Prometheus gauges for the shallow refresh worker pool: live workers, idle workers, and queued refresh requests.
  • ce6cd5: Added a readyset.shallow_cache_stats virtual relation exposing per-cache adaptive load, over-cap state, scheduler queue depth, and hit rate.
  • 1af9f1e: Fixed Postgres unnamed prepared statements from returning rows resolved against the wrong schema after changing search_path.
  • 2721c75: Fixed BEGIN / START TRANSACTION isolation-level and read-only modifiers from being silently dropped when proxied to upstream.
  • 8bbf226: Stopped Postgres unnamed prepared statements from staying pinned to the upstream after a transaction, which bypassed the cache for the rest of the connection's life.
  • 58fc39c: Added the readyset.shallow_cache_coalesce_stats vrel, which shows additional coalescing stats such as time spent coalescing and an estimate of upstream execution time avoided due to coalescing.
  • abd686d: Added a dropped-refresh stat to the readyset.shallow_cache_refresh_stats vrel.
  • 6ec2ae6: Stopped CREATE CACHE for shallow caches from failing against PostgreSQL upstreams when the query references columns by ordinal position in ORDER BY or GROUP BY (for example, ORDER BY 2, 1), including the SELECT DISTINCT case that was rejected outright.

stable-260630

Choose a tag to compare

@ronh-rs ronh-rs released this 01 Jul 15:23

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

We also provide binaries of an MCP server for use with Readyset.

What's New

  • 2896676: Fixed a bug where bare empty arrays (ARRAY[]) were silently accepted instead of being rejected during query lowering. Cached queries that previously succeeded with bare empty arrays will now return cannot determine type of empty array. Empty arrays with an explicit array cast (ARRAY[]::INT[]) remain valid and are treated as PostgreSQL-compatible, dimensionless empty arrays.
  • 0cf174a: Top K query support is now enabled by default (--feature-topk / FEATURE_TOPK). Set it to false on each Readyset process to opt out.
  • 9a780d7: Fixed a bug where queries blocked on shallow cache coalescence would continue waiting until the coalesce duration elapsed, even after the upstream query they were waiting on had failed. Also decoupled the coalesce timeout from the initial upstream query start time, so queries that run much longer than the coalesce duration can still benefit from coalescence. Each subsequent request now waits for the full coalesce duration.
  • c18638b: Fixed a rare dropped write in PostgreSQL replication under load when group commit coalesces transactions.
  • 962d4ae: Fixed a bug where dropped shallow cache refreshes prevented subsequent refreshes until that entry was evicted.
  • 50038be: Added the json_build_array and jsonb_build_array built-in functions for building JSON and JSONB arrays from variadic arguments.
  • 17bebdd: Fixed an issue where SELECT DISTINCT with AVG and parameterized range or IN predicates returned duplicate values.
  • dc55588: Fixed a race condition in which a row committed while a cache's first SELECT migrated its reader could be dropped from the cached result even though it was still present in the base table.

stable-260528

Choose a tag to compare

@ronh-rs ronh-rs released this 28 May 21:31

Release Notes

NEW! We now have an MCP server for use with Readyset.

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • b9a198a: Added group commit support for the PostgreSQL replication connector, coalescing multiple committed transactions into a single batch before flushing to Readyset. This reduces RPC overhead and improves replication throughput under high write rates. Uses the same configuration parameters as the MySQL connector: group_commit_max_trx, group_commit_wait_us, and replication_batch_size.
  • c4d2ab3: Fixed SET time_zone handling for lowercase or mixed-case IANA names (e.g., us/eastern), matching MySQL’s case-insensitive lookup.
  • a43fe8b: Improved error reporting during configuration verification. Failures to connect as an allowed user now include the underlying error (e.g., TLS certificate validation failure) instead of a generic Failed to establish connection message.
  • 7a32213: Fixed a cryptic panic in the adapter runtime when the metrics HTTP listener port was already in use. The failure is now logged with the address that could not be bound.
  • beaead2: The adapter now listens on both IPv4 and IPv6 by default. The MySQL adapter binds to [::]:3307 (dual-stack, all interfaces), and the PostgreSQL adapter binds to 127.0.0.1:5433 and [::1]:5433 (IPv4 and IPv6 loopback). --address now accepts multiple values to bind to several interfaces.
  • 24e7114: LATERAL COUNT queries that reference the count in WHERE, HAVING, ORDER BY, GROUP BY, or JOIN ON clauses over single-relation filters are now correctly rewritten to COALESCE(col, 0) after LEFT JOIN inlining, preserving COUNT-over-empty semantics.
  • 1948672: Fixed SELECT DISTINCT queries with range parameters returning incorrect results when combined with aggregate functions (e.g., SELECT DISTINCT count(col) FROM t WHERE col > ? GROUP BY category).
  • 425a51e: PostgreSQL now supports Readyset query hints (/*rs+ CREATE SHALLOW CACHE */ and /*rs+ SKIP CACHE */) for both the simple and extended protocols.
  • d10fc36: CREATE CACHE now returns a row containing metadata about the newly created cache, including its query ID, name, query text, and whether it is a deep or shallow cache.
  • a191556: Added a new readyset-mcp standalone binary that brings MCP (Model Context Protocol) support to Readyset, allowing AI assistants such as Claude Code and Cursor to introspect deployments and manage caches via stdio. Configuration is handled via environment variables, and TLS to the Readyset SQL listener is supported.
  • c220398: Readyset now includes an embedded MCP (Model Context Protocol) HTTP endpoint, enabled with --enable-mcp, allowing AI assistants to introspect deployments and manage caches over HTTP. Access is controlled via bearer tokens managed through CREATE, SHOW, ALTER, and DROP MCP TOKEN, each with a defined scope (read_only, cache_admin, full).
  • 1b059bc: Fixed a thread leak that could cause Readyset to panic after repeated CREATE CACHE statements.
  • 1189d2b: Fixed a silent COM_CHANGE_USER authentication failure that rejected valid credentials when the client (e.g., ProxySQL) reused the handshake-time authentication response instead of recomputing it after the server’s AUTH_SWITCH_REQUEST.
  • c40661c: Fixed a wire encoding mismatch where AVG over BIGINT in cached queries with range or WHERE IN parameters returned a different NUMERIC scale than upstream PostgreSQL.
  • 03a3211: Fixed AVG(x) OVER (...) on DECIMAL/NUMERIC columns returning trailing digits due to f64 arithmetic instead of the dialect-correct value.
  • e0bf9e6: Standardized and converted to snake_case the column names emitted by SHOW CACHES, SHOW PROXIED QUERIES, EXPLAIN CREATE CACHE, and SHOW SHALLOW CACHE ENTRIES.
  • 214c5d2: Improved performance for text-heavy workloads by caching collation key hashes and storing them in persistent state. Persistent state is automatically re-snapshotted on upgrade.
  • 26db2e2: Under a non-UTC session time_zone, TIMESTAMP and DATETIME wire output is now emitted as unshifted UTC wall-clock time. This prevents mismatches with derived values such as EXTRACT(HOUR FROM ts), which are not converted from UTC.
  • 06ba0dc: Non-UTC SET @@time_zone is now marked as unsupported; behavior depends on unsupported_set_mode (proxy, error, or ignore).
  • ef62681: In-request-path shallow auto-caching now skips system schema, session variable, and non-deterministic queries typically issued during driver or ORM bootstrap, preventing cache pollution.
  • 8c173ed: Added a new UNTIL WRITE keyword to CREATE CACHE. Queries created with this option are served from cache until the current transaction observes a write, after which they are proxied upstream. Auto-created shallow caches in --query-caching=inrequestpath --cache-mode=shallow adopt this policy automatically, allowing client drivers that wrap each statement in implicit transactions (e.g., Supabase Python drivers, ORMs with autocommit disabled, JDBC defaults) to benefit without configuration changes.
  • 79b6194: Added a new --opportunistic-ryw-ms configuration option (also OPPORTUNISTIC_RYW_MS environment variable). When set, reads in a session bypass the cache for a specified number of milliseconds after a write in the same session, allowing upstream replication time to catch up. Applies only outside transactions; in-transaction routing remains governed by the per-cache TrxCachePolicy. This is a best-effort mechanism, not a consistency guarantee, and is disabled by default.
  • a0fa770: Parallelized RocksDB lookups for batched upqueries, reducing cold cache miss latency for large key batches.
  • 94034d5: Added hits, misses, and refreshes columns to the readyset.shallow_caches virtual relation, exposing per-cache metrics via SQL.
  • 4a00524: PostgreSQL SET TimeZone now accepts all UTC-equivalent zones rather than only the literal 'UTC'. Non-UTC values are handled according to unsupported_set_mode.
  • b971023: COM_CHANGE_USER authentication failures rejected by the shim now produce a debug log instead of failing silently. Credential mismatch logs now include the username and negotiated authentication plugin.
  • 115cd6c: Added the readyset.deep_caches virtual relation, which can be queried using arbitrary SQL to inspect current deep cache state.
  • c33db6f: Added an until_write column to the readyset.shallow_caches and readyset.deep_caches virtual relations.
  • 6601c39: Fixed a view correctness bug where a select-list alias that shadowed another column’s source name could return the wrong column's value.
  • 7d3e444: CREATE CACHE now accepts a WITH (option, ...) clause that groups cache options after the optional cache name, for example: CREATE CACHE my_cache WITH (POLICY TTL 5 SECONDS, ALWAYS) FROM .... Supported options are POLICY (with TTL/REFRESH), COALESCE, ALWAYS and UNTIL WRITE. The bare-keyword form, with options before the name, remains valid, but the two forms cannot be combined in a single statement.
  • c27c1d4: CREATE CACHE accepts a new TOPK_BUFFER_MULTIPLIER option (inside WITH (...) only) that sets how many extra rows the TopK operator buffers past the limit to avoid upstream replays on deletes. Defaults to the previous behavior of multiplier = 1; 0 disables buffering entirely.

stable-260423

Choose a tag to compare

@ronh-rs ronh-rs released this 23 Apr 23:20

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 642d626: Fixed ORDER BY on window function aliases and other SELECT expression aliases being incorrectly rejected with "not functionally dependent on GROUP BY" when the query also contained aggregates.
  • c579afd: AVG queries with WHERE IN, range, or BETWEEN conditions can now be cached.
  • 305ffa6: Fixed the TopK operator returning incorrect row counts after deletes when queries had no GROUP BY clause and contained duplicate values in the ORDER BY column.
  • d0bde24: Fixed SELECT DISTINCT with ORDER BY and LIMIT returning fewer rows than expected when the table contained many duplicate values.
  • 00d661b: json_object_agg and jsonb_object_agg queries with WHERE IN clauses can now be cached.
  • dea67be: Added the FLUSH ALL SHALLOW CACHES SQL command, which clears cached data for all shallow caches without removing cache definitions.
  • 8bd42e8: Fixed a bug in shallow cache where duplicate refresh callbacks could accumulate for the same cache key, causing unbounded growth in upstream query volume over time.
  • 6e06f05: MySQL replication now batches row events within a transaction into a single RPC instead of issuing one RPC per row. Initial tests showed up to a 21x throughput improvement for large transactions; actual gains will vary depending on hardware and workload. Controlled by the new --replication-batch-size flag (default: 50,000).
  • 3311c09: MySQL replication now coalesces consecutive small transactions into a single RPC batch via group commit. The first committed transaction starts a short wait window (default: 500 µs) to collect additional transactions before flushing. Compressed transactions participate in group commit alongside uncompressed ones. Initial tests showed up to a 7.6x throughput improvement for single-row autocommit workloads; actual gains will vary depending on hardware and workload. Controlled by --group-commit-max-trx (default: 20) and --group-commit-wait-us (default: 500).
  • fa98b0f: Fixed GROUP_CONCAT to respect the upstream MySQL database's group_concat_max_len setting instead of always using the 1024-byte default.
  • d53a37f: Fixed SUBSTRING to implicitly cast non-string types (INT, DOUBLE, DATE) to strings, matching MySQL behavior.
  • 5a3627e: Fixed AVG and SUM aggregate output precision and scale to match upstream Postgres and MySQL behavior for all input types.
  • 52568cd: Fixed SUM and AVG aggregate functions to correctly return NULL when all input values are NULL, per the SQL standard.
  • 7dbd76f: Added MILLISECONDS (MS) syntax to shallow cache creation.
  • 8b20685: Fixed parsing of MySQL UNIQUE KEY column constraints (both inline forms like x INT UNIQUE KEY and suffix forms like UNIQUE KEY name (col) USING {HASH, BTREE}).
  • 0fc8c04: Added support for MySQL INVISIBLE columns (MySQL 8.0.23+). Readyset now tracks the invisible attribute on columns, excludes them from SELECT expansion (matching MySQL behavior), and uses explicit column lists during snapshots to ensure invisible columns are correctly replicated.
  • 861e472: In-request-path migration now auto-creates shallow caches when --cache-mode=shallow.
  • ca0b9d1: Readyset now includes a query ID label in recorded query metrics in the default (non-verbose) query logging mode, allowing easier analysis of query workloads. The count column in SHOW PROXIED QUERIES and SHOW CACHES now displays meaningful values by default.
  • ad41730: Fixed TIMESTAMP values being converted using the server's system timezone instead of the client's @@time_zone session variable.
  • fd5dfaf: Added readyset.upstream_query_stats and readyset.cached_query_stats virtual relations (vrels) for querying per-query execution metrics via SQL.
  • fa4c7a7: Added support for MySQL GTID-based replication. When gtid_mode is ON upstream and --require-gtid is set, Readyset tracks replication progress using the executed GTID set instead of the binlog file and position, enabling replication to survive upstream source failover. Includes crash recovery with per-event index tracking (controlled by --max-gtid-rows-to-skip, default: 10,000) and supports MySQL 8.4+ tagged GTIDs (GTID_TAGGED_LOG_EVENT).
  • 5255ad8: Added runtime failover commands for managing the replicator without restarting Readyset. New SQL syntax: ALTER READYSET STOP REPLICATION and ALTER READYSET START REPLICATION pause and resume the replicator; ALTER READYSET SET REPLICATION POSITION '<pos>' resumes from a specific binlog file/position or GTID set (e.g., after an upstream failover); ALTER READYSET CHANGE CDC TO '<url>' repoints Readyset to a new upstream database. On restart, the replicator skips re-snapshotting and resumes from the stored position. A new ReplicationStatus field (Running/Stopped/Disabled) is exposed via SHOW READYSET STATUS.
  • 5c32f0e: Readyset's MySQL adapter no longer performs the RSA-based caching_sha2_password full-auth exchange. Clients must authenticate via the pre-populated fast-auth cache.

stable-260331

Choose a tag to compare

@ronh-rs ronh-rs released this 31 Mar 19:08

Release Notes

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 0ee831f: Fixed handling of empty array literals ({}) in PostgreSQL queries that previously caused type mismatch errors.

  • f89952f: EXPLAIN MATERIALIZATIONS now supports the optional FOR CACHE <name> suffix to show only the materialized nodes belonging to a specific cache’s dataflow.

  • f0fe3f4: Readyset now creates shallow caches by default in response to CREATE CACHE statements, allowing users to start caching queries without first setting up replication.

    • If replication is configured, start Readyset with --cache-mode deep or --cache-mode deep-then-shallow to enable deep caching (CACHE_MODE environment variable).
    • You can request a specific cache type using the CREATE [DEEP|SHALLOW] CACHE syntax.
  • d37510d: Added support for the PostgreSQL array overlap operator (&&), which checks whether two arrays share any common elements.

  • 6924e75: Fixed an issue where filters on ROW_NUMBER() results were lost in nested subqueries with identically named window output columns, causing too many rows to be returned.

  • f4e59d1: Fixed a race condition between the WAL flushing thread and the full replay thread.

  • 3867c09: Fixed an out-of-memory issue during replays for queries with fully materialized nodes.

  • d4c33ed: Fixed incorrect results for LEFT JOINs with ON-clause conditions referencing only the left table.

  • 83767d8: Fixed a crash in domain processing when SUM or AVG aggregates were applied to text columns in MySQL mode.

  • ce07ae1: Fixed AVG() decimal precision for integer columns in MySQL.

  • 8f37261: Added support for auto-incrementing columns in PostgreSQL via the GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY syntax.

  • fb31b80: Fixed a panic when json_object_agg was used in queries requiring post-lookup aggregation (e.g., with WHERE IN clauses). These queries now gracefully fall back to the upstream database.

  • 4932860: Improved performance of PostgreSQL array containment operators (@> and <@) from O(n*m) to O(n+m).

  • 9bed07a: Fixed incorrect NULL ordering in PostgreSQL array comparisons. NULL elements are now correctly treated as greater than non-NULL values, matching PostgreSQL semantics.

  • 4bfec7c: Fixed a bug where GROUP BY with numeric column references (e.g., GROUP BY 1) failed inside subqueries.

  • 0e2d46d: Fixed a bug causing column lookup errors during MIR lowering for queries with aggregates inside derived tables (e.g., SELECT * FROM (SELECT max(id), val FROM t GROUP BY 2) AS sub).

  • a8a6425: SHOW PROXIED QUERIES now defaults to displaying proxied queries and their Readyset support status based on the current --cache-mode setting (default: shallow).

    • You can specify a list using the DEEP or SHALLOW modifier, e.g., SHOW PROXIED [DEEP|SHALLOW] QUERIES.
  • 8fb0958: Fixed array_agg on array-typed columns (e.g., ARRAY(SELECT ARRAY[...])), which previously returned Unsupported type errors. It now produces multidimensional arrays matching PostgreSQL behavior.

  • b5bf630: Fixed incorrect results for LEFT JOIN + subquery queries with parameterized WHERE clauses on a right-side non-join column.

  • 7033df7: Added support for VALUES clauses in the FROM position with JOINs, enabling inline literal tables (e.g., SELECT ... FROM (VALUES (1, 'a')) AS v(id, name) JOIN t ON ...).

  • 42bca2b: Fixed a domain thread crash when caching queries with type-mismatched join conditions (e.g., INT joined against group_concat TEXT output that cannot convert to INT).

  • 4689a72: Fixed equality comparison bugs with TIMESTAMP and non-UTC TIMESTAMPTZ cached lookups. Persistent state will be automatically re-snapshotted on upgrade.

  • 968d819: Fixed incorrect results for TIMESTAMP queries with timezone offsets in literals.

  • 3965615: Fixed MySQL DATETIME lookups with timezone offsets in WHERE clauses.

  • f0617bf: Fixed connection tracking to properly handle multiple authenticated users from the same IP address and re-authentication cases. SHOW CONNECTIONS now displays both remote addresses and usernames.

  • 31a08d9: Added a virtual Readyset schema backed by DataFusion, exposing more system state via SQL and virtual relations.

    • The default schema name is readyset, configurable via the --readyset-schema flag or the READYSET_SCHEMA environment variable.
  • 7d4e2e4: Added readyset.shallow_caches virtual relation (vrel) to examine current shallow caches.

  • a77c177: Added readyset.shallow_cache_entries vrel to assist in diagnosing shallow cache entries.

  • 8b668c3: Fixed duplicate column projection handling to prevent debug assertion panics when queries select the same column multiple times.

  • 369f17f: Added the SKIP CACHE hint (/*+ SKIP CACHE */) to bypass Readyset caches and route queries directly to the upstream database.

  • d83cf2f: Added a reason tag to the skip cache metric to distinguish between SKIP CACHE hints, transactions, and proxy-always bypass scenarios.

    • Thank you to @Daksh-10 for the contribution!
  • Readyset now supports MySQL Global Transaction Identifiers (GTIDs) for binlog replication. When the upstream MySQL server has GTID mode enabled, Readyset automatically detects and uses GTID-based positioning instead of traditional binlog file/position tracking. This provides:

    • Automatic GTID detection: Readyset queries the upstream server's gtid_mode variable and switches to GTID-based replication automatically when available.
    • --require-gtid flag: Optionally enforce GTID mode, preventing fallback to binlog file/position if the upstream server has GTIDs disabled.
  • Readyset now supports switching the upstream database source without a full re-snapshot, enabling planned failover scenarios (e.g., promoting a replica or migrating to a new host). Four new SQL commands are available:

    • ALTER READYSET STOP REPLICATION: Pauses the replication stream.
    • ALTER READYSET START REPLICATION: Resumes replication from the last stored position.
    • ALTER READYSET SET REPLICATION POSITION '<pos>': Updates the stored replication position (accepts MySQL binlog file:position, GTID set, or PostgreSQL LSN format).
    • ALTER READYSET CHANGE CDC TO '<url>': Points Readyset at a new upstream database URL.

    A typical failover workflow: stop replication, change the CDC URL to the new source, optionally adjust the replication position, then start replication. This works for both MySQL (binlog file/pos and GTID) and PostgreSQL (LSN) deployments.

  • Added query hint syntax (/*rs+ ... */) for inline cache management. CREATE SHALLOW CACHE hints create a shallow cache on first execution while still executing the query. It also allows for optional settings such as TTL and COALESCE.

stable-260226

Choose a tag to compare

@ronh-rs ronh-rs released this 26 Feb 22:28

Release Notes

NEW! Readyset is now releasing distro packages and containers for the arm64/aarch64 architecture.

Readyset is currently released as a docker container and Linux distro binary packages. For installation with docker, see the Install with Docker documentation. Available Linux distribution binary packages for x86_64/amd64 and arm64/aarch64 include deb package for Ubuntu 22.04, Debian 12 and later, and rpm packages for Amazon Linux 2023 and RedHat 9. See package installation instructions.

What's New

  • 3a084fc: Eliminated confusing ERROR messages from the replicator on restart.
  • eaed2b5: Added error handling when replicated data arrives before the base node is open.
  • e09ff1d: Extended shallow caching support via sqlparser ASTs.
  • dddd9a9: Added support for the PostGIS POLYGON data type.
  • 7d2e198: Fixed "partially overlapping partial indices" error when caching window function queries that filter on both the partition column and the generated output column (e.g., ROW_NUMBER()).
  • 78986ba: Readyset now defaults to sqlparser for parsing, while still using the legacy parser to catch mismatches.
  • 92d197f: Added support for replicating tables with MySQL functional indexes. Tables with functional indexes can now be snapshotted if they have a usable PRIMARY or UNIQUE key without functional expressions.
  • 482311c: Shallow cache refresh workers are now spawned on demand to reduce unused upstream connections. Workers also shut down and close their connections after an idle period.
  • 86a882d: Fixed a bug to support PostGIS POINT EMPTY.
  • 3b0c72f: Added the SHOW SHALLOW CACHE ENTRIES command to display metadata about cached entries, including last accessed time, refresh time, and execution duration. Supports a WHERE query_id filter and LIMIT clause.
  • 8c92f34: In shallow-cache-only mode, Readyset now supports changing the upstream database via the ALTER READYSET CHANGE UPSTREAM TO '...' statement.
  • 1e38a2c: Optimized TLS client connections for MySQL.
  • 2fa2c1b: Fixed array equality comparisons and type coercion so PostgreSQL array values are correctly compared and cast during query evaluation.
  • 424dd67: Added support for PostgreSQL array operators @> (contains), <@ (contained by), and || (concatenation) in queries proxied and cached by Readyset.
  • b944665: Add rejection of multidimensional array literals with mismatched sub-array dimensions at query preparation time instead of failing at read time.
  • 0adeae0: Added support for the string concatenation operator || for PostgreSQL.
  • 14c83ae: Properly handle AUTOCOMMIT.
  • a9b3733: Fixed AUTOCOMMIT handling during transactions.
  • 5e96e21: Fixed the shallow cache COALESCE setting reverting to its default value after restart when the cache was created via a SQL hint.
  • 8eca556: Fixed malformed Readyset hint comments (e.g., misspelled POLICY keywords) that caused queries to bypass existing shallow caches and hit the upstream database instead.
  • b8247a1: Fixed queries with multiple optimizer hints creating duplicate shallow cache entries instead of sharing a single cache.
  • 0d05da7: Added the SHOW PROXIED SHALLOW QUERIES command to display proxied queries suitable for shallow caching. The query IDs shown can be used to create caches via CREATE CACHE FROM <QUERY_ID>.
  • 14ec787: Fixed a bug where arrays with incompatible element types (e.g., INTEGER and DATE) were silently accepted instead of being rejected at CREATE CACHE time.
  • 692f3e8: Fixed ARRAY[] IN (ARRAY[]) returning incorrect results due to arrays being coerced to strings during constant folding.
  • 9c7a6c2: Fixed a bug where aggregate functions wrapped in scalar functions (e.g., ROUND(MAX(col))) returned 0 rows instead of one row with NULL on empty tables.

Thank you to the following community contributors to this release:
@ahmed-kamal2004, @egoldschmidt