Repository navigation
Releases
stable-261022
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
RowDescriptionso 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
CIDRvalues 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 PASSWORDkeeps the old password valid alongside the new one, and... DISCARD OLD PASSWORDretires it. Naming a user twice in--allowed-usersstarts a deployment mid-rotation. Thereadyset.usersview reports rotations in progress in a newhas_old_passwordcolumn. - cea2138: Improved throughput for queries sent as text, which previously serialized on the schema catalog lock.
- 62dcdff: Changed the default
--memory-limitfrom unlimited to 80% of the memory available to Readyset (the container limit, if set). Set--memory-limitto0to keep the previous unlimited behavior. - 4130517: The shallow cache now uses half of
--memory-limitin deep and deep-then-shallow cache modes when--shallow-memory-percentis 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, orLIMITto 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 BYandLIMITwhen 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 CACHEandEXPLAIN CREATE CACHEstatements are now rejected with an error when the session is connected to thereadysetschema. - 1d8f8e6: Added an admin SQL port. Admin sessions connect to the
readysetschema 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
pointvalues are now supported when shallow caches are accessed over the extended query protocol. - 5a2e886: PostgreSQL
boxvalues are now supported when shallow caches are accessed over the extended query protocol. - 5ebf356: PostgreSQL
pathvalues 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-urland--cdc-db-urlnow 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, andHAVINGare now resolved as they are in those databases. - 77e2c28: Deep caches created using a query ID from
SHOW PROXIED QUERIES, viaCREATE 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 NULLcolumn on the right side of aLEFT JOIN, or a view containing aUNION ALLquery where a column wasNULLin one branch andNOT NULLin 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 thePRI_KEY,UNIQUE_KEY,AUTO_INCREMENT, andNO_DEFAULT_VALUEcolumn definition flags instead of picking the flags based on one of theUNION ALLbranches. For PostgreSQL, we now correctly return type modifier metadata for a column only if it is the same across allUNION ALLbranches, 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 aTINYINT(1)to a boolean but instead received an incorrect default width ofTINYINT(4). - 5ef2a8f: Added replication of MySQL tables with
ZEROFILLcolumns 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
ZEROFILLcolumns 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_nullto a true value is now treated as an unsupportedSETstatement. - b9540a3: Fixed an issue that caused shallow cache entries to be shared between PostgreSQL sessions with differing
timezone_abbreviationsorintervalstylesettings. - 308ab73: Fixed an issue that caused shallow cache entries to be shared between PostgreSQL sessions with differing
default_text_search_configsettings. - 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
IntervalStylethat 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_eventsmetric. - 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 KEYexisted.
stable-260924
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
NULLvalues 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 and55000(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
byteavalues 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 CACHEqueries with a very largeLIMIT. - 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 EXISTSstatements 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 CACHEto fail during a window of a few milliseconds. - 690f449: PostgreSQL tables with generated columns now appear in
SHOW READYSET ALL TABLESas 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 DATABASEstatements 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-cacheargument orCREATE CACHEhints. - 012ab5e: Added support for
SHOW WARNINGSin 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 withCREATE CACHE FROM <query id>. - 932ca8c:
EXPLAIN CACHESnow renders query placeholders in valid positions forCREATE SHALLOW CACHEstatements. - 66968a2:
EXPLAIN CACHESnow prefixes eachCREATE SHALLOW CACHEstatement withUSE <db>;for MySQL orSET 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
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
ROWconstructors, returning them asrecordvalues in both text and binary wire formats. - f6d3faf: Fixed
jsonb_setandjsonb_insertto accept a text-literal path argument, such as'{k}'. - 20403b5: Fixed a panic on
WHEREclauses of the formNOT ((NOT a) AND <non-negatable expression>). - 7c2cb9f: Fixed an
HY000error when a MySQL query returned a date or time value through a text-typed result column, such asIFNULL(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
utf8mb3character set to convert supplementary characters to?, matching MySQL. - 835d153: Users can now connect to the
readysetschema (USE readyseton MySQL orSET search_path = readyseton PostgreSQL) to inspect and manage Readyset even when the upstream database is down. - aa20080: Fixed PostgreSQL's
->>,#>>, andjson_extract_path_textoperators from returning extracted values with their JSON quoting intact. A stored string now returns asvaluerather than"value", and a JSON null now returns as SQLNULLrather than the textnull. - 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, andutf8mb3_unicode_cicollations so accented and unaccented equivalents match in point lookups andGROUP BYqueries as they do in MySQL. A resnapshot is necessary for deep caching. - 8279fe8: Fixed
LIKEwith 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-shardsto 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 of0preserves 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 ARRAYunder PostgreSQL, which was previously treated as a cast tot. This spelling now also parses wherever a type is written, not only afterCAST(... AS ...). - ff51577: Readyset now supports the
IS [NOT] DISTINCT FROMbinary operators.
stable-260730
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 ROLEcould still change which cached rows a session was served. - bce1b86: Readyset now applies a
LIMITwith noORDER BYinside the cache by lowering it to aTopKnode in the graph, storing only the limited rows instead of the full result. Caches created withLIMIT 10, for example, will stop serving queries with literal values other than10. - 3daaf72: Fixed
FLOAT + DOUBLEarithmetic silently truncating to single precision; the result is now computed and returned asDOUBLE, 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 CACHEsupport 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-secsoption (RLS_POLL_INTERVAL_SECS) to configure how often the Postgres RLS catalog is polled for policy changes. Defaults to 60 seconds. - cf83ced:
EXPLAIN LAST STATEMENTnow reports the shallow cache's name on a hit, matching what it already reports for a deep cache hit. - c2cbc5f:
EXPLAIN LAST STATEMENTreports a shallow-cache miss asreadyset_then_upstream(<cache>)with reasonshallow cache miss, instead of a plainupstreamresult that is indistinguishable from a real bypass. Its second column is renamed fromReadyset_errortoReadyset_reasonand 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 QUERIESnow lists queries that Readyset declined to cache automatically, withreadyset_supportedreadingskipped: <reason>. - 94839c6: Fixed connection drops for MySQL clients that negotiate a
latin1orcp850handshake 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 NAMESorSET 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
latin1orcp850handshake 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
latin1orcp850character 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
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
mysqlCLI) now have theirCLIENT_INTERACTIVEcapability forwarded to the upstream connection, so their sessions honorinteractive_timeoutrather thanwait_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_REFRESHERto the upstream database, making them identifiable inpg_stat_activity(PostgreSQL) andperformance_schema.session_connect_attrs(MySQL). - 9435cb9: Fixed shallow caches not serving traffic after an adapter restart.
- 14fdce2: The
SHOW READYSET STATUScommand 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-sqlparser when running Readyset with the now-default--cache-mode shallow. - a324257: Fixed hint-created shallow caches from losing sub-second
COALESCEwindows 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
COALESCEwaits: 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_statsvirtual 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 TRANSACTIONisolation-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_statsvrel, 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_statsvrel. - 6ec2ae6: Stopped
CREATE CACHEfor shallow caches from failing against PostgreSQL upstreams when the query references columns by ordinal position inORDER BYorGROUP BY(for example,ORDER BY 2, 1), including theSELECT DISTINCTcase that was rejected outright.
stable-260630
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 returncannot 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 tofalseon 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_arrayandjsonb_build_arraybuilt-in functions for building JSON and JSONB arrays from variadic arguments. - 17bebdd: Fixed an issue where
SELECT DISTINCTwithAVGand parameterized range orINpredicates returned duplicate values. - dc55588: Fixed a race condition in which a row committed while a cache's first
SELECTmigrated its reader could be dropped from the cached result even though it was still present in the base table.
stable-260528
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, andreplication_batch_size. - c4d2ab3: Fixed
SET time_zonehandling 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 connectionmessage. - 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 to127.0.0.1:5433and[::1]:5433(IPv4 and IPv6 loopback).--addressnow accepts multiple values to bind to several interfaces. - 24e7114:
LATERAL COUNTqueries that reference the count inWHERE,HAVING,ORDER BY,GROUP BY, orJOIN ONclauses over single-relation filters are now correctly rewritten toCOALESCE(col, 0)afterLEFT JOINinlining, 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 CACHEnow 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-mcpstandalone 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 throughCREATE,SHOW,ALTER, andDROP 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 CACHEstatements. - 1189d2b: Fixed a silent
COM_CHANGE_USERauthentication failure that rejected valid credentials when the client (e.g., ProxySQL) reused the handshake-time authentication response instead of recomputing it after the server’sAUTH_SWITCH_REQUEST. - c40661c: Fixed a wire encoding mismatch where
AVGoverBIGINTin cached queries with range orWHERE INparameters returned a differentNUMERICscale than upstream PostgreSQL. - 03a3211: Fixed
AVG(x) OVER (...)onDECIMAL/NUMERICcolumns 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, andSHOW 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,TIMESTAMPandDATETIMEwire output is now emitted as unshifted UTC wall-clock time. This prevents mismatches with derived values such asEXTRACT(HOUR FROM ts), which are not converted from UTC. - 06ba0dc: Non-UTC
SET @@time_zoneis now marked as unsupported; behavior depends onunsupported_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 WRITEkeyword toCREATE 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=shallowadopt 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-msconfiguration option (alsoOPPORTUNISTIC_RYW_MSenvironment 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-cacheTrxCachePolicy. 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, andrefreshescolumns to thereadyset.shallow_cachesvirtual relation, exposing per-cache metrics via SQL. - 4a00524: PostgreSQL
SET TimeZonenow accepts all UTC-equivalent zones rather than only the literal'UTC'. Non-UTC values are handled according tounsupported_set_mode. - b971023:
COM_CHANGE_USERauthentication 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_cachesvirtual relation, which can be queried using arbitrary SQL to inspect current deep cache state. - c33db6f: Added an
until_writecolumn to thereadyset.shallow_cachesandreadyset.deep_cachesvirtual 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 CACHEnow accepts aWITH (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 arePOLICY(withTTL/REFRESH),COALESCE,ALWAYSandUNTIL 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 CACHEaccepts a newTOPK_BUFFER_MULTIPLIERoption (insideWITH (...)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
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 BYon window function aliases and otherSELECTexpression aliases being incorrectly rejected with "not functionally dependent on GROUP BY" when the query also contained aggregates. - c579afd:
AVGqueries withWHERE IN,range, orBETWEENconditions can now be cached. - 305ffa6: Fixed the TopK operator returning incorrect row counts after deletes when queries had no
GROUP BYclause and contained duplicate values in theORDER BYcolumn. - d0bde24: Fixed SELECT DISTINCT with ORDER BY and LIMIT returning fewer rows than expected when the table contained many duplicate values.
- 00d661b:
json_object_aggandjsonb_object_aggqueries with WHERE IN clauses can now be cached. - dea67be: Added the
FLUSH ALL SHALLOW CACHESSQL 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-sizeflag (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_CONCATto respect the upstream MySQL database'sgroup_concat_max_lensetting instead of always using the 1024-byte default. - d53a37f: Fixed
SUBSTRINGto 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 KEYand suffix forms likeUNIQUE 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 QUERIESandSHOW CACHESnow displays meaningful values by default. - ad41730: Fixed TIMESTAMP values being converted using the server's system timezone instead of the client's
@@time_zonesession variable. - fd5dfaf: Added
readyset.upstream_query_statsandreadyset.cached_query_statsvirtual relations (vrels) for querying per-query execution metrics via SQL. - fa4c7a7: Added support for MySQL GTID-based replication. When
gtid_modeis ON upstream and--require-gtidis 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 REPLICATIONandALTER READYSET START REPLICATIONpause 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 newReplicationStatusfield (Running/Stopped/Disabled) is exposed viaSHOW READYSET STATUS. - 5c32f0e: Readyset's MySQL adapter no longer performs the RSA-based
caching_sha2_passwordfull-auth exchange. Clients must authenticate via the pre-populated fast-auth cache.
stable-260331
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 MATERIALIZATIONSnow supports the optionalFOR 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 CACHEstatements, allowing users to start caching queries without first setting up replication.- If replication is configured, start Readyset with
--cache-mode deepor--cache-mode deep-then-shallowto enable deep caching (CACHE_MODEenvironment variable). - You can request a specific cache type using the
CREATE [DEEP|SHALLOW] CACHEsyntax.
- If replication is configured, start Readyset with
-
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 withON-clause conditions referencing only the left table. -
83767d8: Fixed a crash in domain processing when
SUMorAVGaggregates 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 IDENTITYsyntax. -
fb31b80: Fixed a panic when
json_object_aggwas used in queries requiring post-lookup aggregation (e.g., withWHERE INclauses). 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
NULLordering in PostgreSQL array comparisons.NULLelements are now correctly treated as greater than non-NULLvalues, matching PostgreSQL semantics. -
4bfec7c: Fixed a bug where
GROUP BYwith 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 QUERIESnow defaults to displaying proxied queries and their Readyset support status based on the current--cache-modesetting (default: shallow).- You can specify a list using the
DEEPorSHALLOWmodifier, e.g.,SHOW PROXIED [DEEP|SHALLOW] QUERIES.
- You can specify a list using the
-
8fb0958: Fixed
array_aggon array-typed columns (e.g.,ARRAY(SELECT ARRAY[...])), which previously returnedUnsupported typeerrors. It now produces multidimensional arrays matching PostgreSQL behavior. -
b5bf630: Fixed incorrect results for
LEFT JOIN+ subquery queries with parameterizedWHEREclauses on a right-side non-join column. -
7033df7: Added support for
VALUESclauses in theFROMposition withJOINs, 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.,
INTjoined againstgroup_concatTEXToutput that cannot convert toINT). -
4689a72: Fixed equality comparison bugs with
TIMESTAMPand non-UTCTIMESTAMPTZcached lookups. Persistent state will be automatically re-snapshotted on upgrade. -
968d819: Fixed incorrect results for
TIMESTAMPqueries with timezone offsets in literals. -
3965615: Fixed MySQL
DATETIMElookups with timezone offsets inWHEREclauses. -
f0617bf: Fixed connection tracking to properly handle multiple authenticated users from the same IP address and re-authentication cases.
SHOW CONNECTIONSnow 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-schemaflag or theREADYSET_SCHEMAenvironment variable.
- The default schema name is
-
7d4e2e4: Added
readyset.shallow_cachesvirtual relation (vrel) to examine current shallow caches. -
a77c177: Added
readyset.shallow_cache_entriesvrel 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 CACHEhint (/*+ 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 CACHEhints, 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-gtidflag: 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 CACHEhints create a shallow cache on first execution while still executing the query. It also allows for optional settings such asTTLandCOALESCE.
stable-260226
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
sqlparserASTs. - dddd9a9: Added support for the PostGIS
POLYGONdata 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
sqlparserfor 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
PRIMARYorUNIQUEkey 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 ENTRIEScommand to display metadata about cached entries, including last accessed time, refresh time, and execution duration. Supports aWHERE query_idfilter andLIMITclause. - 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
AUTOCOMMIThandling during transactions. - 5e96e21: Fixed the shallow cache
COALESCEsetting 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
POLICYkeywords) 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 QUERIEScommand to display proxied queries suitable for shallow caching. The query IDs shown can be used to create caches viaCREATE CACHE FROM <QUERY_ID>. - 14ec787: Fixed a bug where arrays with incompatible element types (e.g.,
INTEGERandDATE) were silently accepted instead of being rejected atCREATE CACHEtime. - 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 withNULLon empty tables.
Thank you to the following community contributors to this release:
@ahmed-kamal2004, @egoldschmidt