October 2026 Summaries
12 posts from PlanetScale
Filter
Month:
Year:
Post Summaries
Back to Blog
Neki’s planned PostgreSQL shard switchover moves write leadership from a primary to a replica for routine maintenance, upgrades, or infrastructure changes while seeking to minimize interruption and avoid client-facing errors. Its control plane, Admin, validates shard health and a promotion target before altering service, while Routers proactively buffer primary-bound queries so they can be replanned against the new primary after promotion; replica-served reads continue normally. Rather than shutting down the original primary immediately, Neki makes it read-only, disconnects non-target replicas, establishes a final WAL position, and requires the target replica to replay through that position, preserving the guarantee that acknowledged synchronous commits are present on the promoted node. It also verifies replication slots, configuration compatibility, and that synchronous replication will remain viable after promotion. If the target cannot catch up or another late validation fails before promotion, Admin can quickly restore the existing primary to writable status and reconnect replicas, while buffered queries may still fail if router capacity or deadlines are exceeded.
Oct 29, 2026
1,592 words in the original blog post.
Postgres became the leading default database for many new applications through a combination of technical adaptability, open governance, cloud distribution, and changing developer preferences rather than a single decisive event. Its origins in the 1980s emphasized extensibility and a permissive license, while a 1994–96 community revival transformed the abandoned research project into PostgreSQL and established its volunteer-led ownership model. The article identifies Heroku’s 2011 decision to make managed Postgres easy to provision as a particularly influential turning point, exposing many developers to the database and encouraging later services such as Amazon RDS to follow. Postgres then strengthened its position against document databases with JSONB support in 2014, benefited as uncertainty followed Oracle’s acquisition of MySQL, and overtook MySQL in Stack Overflow’s developer survey in 2023. By 2025–26, broad cloud availability, investment, pgvector support for AI applications, and frequent selection by coding agents had accelerated its adoption, although the article notes that MySQL remains important for large-scale workloads and that Postgres still faces challenges in horizontal sharding and extreme-scale performance.
Oct 27, 2026
2,273 words in the original blog post.
Neki’s shard-group design centers on query and transaction patterns rather than individual tables, aiming to co-locate related rows on a single Postgres shard so joins remain local and retain full transactional semantics. Shard groups use shard indexes, typically xxhash over a shared key such as customer_id, to distribute related customer, order, item, and address data across physical clusters, while allowing exceptions such as using a customers table’s id column. Reference tables such as countries or currencies can be replicated to every relevant shard to prevent cross-shard joins, and separate shard groups can organize differently related data, such as product catalogs by normalized SKU, while potentially sharing the same physical shards. The system also supports SQL expressions in shard keys, range and modulo indexing for compatibility with other placement models, and global secondary indexes that turn queries lacking a shard key into targeted lookup-and-read operations rather than broad fan-outs. Data placement can later be changed through MoveTables and Reshard workflows, enabling tables to be imported, redistributed, assigned new keys, or scaled to different shard counts as application workloads evolve.
Oct 23, 2026
2,054 words in the original blog post.
Postgres’s ON DELETE CASCADE simplifies referential cleanup by atomically deleting related rows through foreign-key relationships, but deeply connected schemas can turn a single deletion into a large transaction that generates substantial WAL, dead tuples, index updates, and locks across many tables. Such cascades can contribute to outages when schema migrations requiring stronger locks queue behind them, block later writes, or when missing foreign-key indexes cause expensive full-table scans. Logical replication introduces further risks because subscriber-side triggers and cascades are normally skipped, potentially leaving orphaned rows if not every dependent table is replicated, while publisher-side deletes can fail for cascade children lacking a usable replica identity. Suggested mitigations include short migration lock timeouts, comprehensive replication coverage and orphan checks, and ensuring foreign keys are indexed. For large-scale deletion workloads, soft deletes followed by scheduled, batched physical cleanup can reduce transaction size, limit lock duration, support recovery from accidental deletions, and better align with the broader principle of keeping OLTP transactions short and bounded.
Oct 21, 2026
1,167 words in the original blog post.
PlanetScale’s sharded PostgreSQL offering, Neki, has added read-only shard replicas, lower-cost Metal instances starting at $50 per month, and Azure deployment support during its platform preview. Recent updates also include Terraform and CLI management for extensions and router parameters, MCP-based branch metrics, configuration update indicators, and huge-page support for eligible Neki and PostgreSQL clusters. Engineering work has focused heavily on expanding SQL compatibility in the distributed query layer, adding support for operations such as cross-shard updates and deletes, MERGE, cursors, materialized views, LISTEN/NOTIFY, and PL/pgSQL exception handlers. Neki now supports standard export workflows through COPY TO STDOUT, has significantly improved distributed bulk-write performance, and provides shard-level execution details through EXPLAIN (NEKI_PG_PLAN). PlanetScale invites PostgreSQL users anticipating sharding, online schema changes, or downtime-free version upgrades to evaluate Neki through its solutions team.
Oct 20, 2026
639 words in the original blog post.
Mats Rydberg explains how Neki, PlanetScale’s sharded PostgreSQL system, reproduces PostgreSQL sequence semantics despite distributing data across independent shards. Neki pushes work to shards when possible but reserves router-only evaluation for expressions whose results require global consistency, such as stable functions like now(), which must return one statement-wide timestamp, and volatile functions like nextval(), which must generate a distinct sequence value for every evaluated row. Because sequences on separate shards could otherwise create duplicate values, Neki centralizes allocation through an authoritative sequence host and distributes generated values from the router. The system must also preserve expression cardinality, ensuring volatile expressions are evaluated once per resulting table-expression row even when joins, filters, or optimizations change intermediate execution order. For distributed SELECT queries, Neki can perform shard-local joins and immutable calculations remotely while applying stable and volatile expressions over the combined result stream in the router. For UPDATE operations using nextval(), it first identifies and locks affected rows, generates a sequence value for each row centrally, and then sends parameterized updates to the appropriate shards.
Oct 14, 2026
3,015 words in the original blog post.
PlanetScale has launched support for Postgres and Neki databases on Microsoft Azure, allowing teams to deploy alongside Azure-based infrastructure in Central US, East US 2, and West Europe, while Vitess remains unavailable on the platform. Azure deployments include PlanetScale’s existing capabilities, such as multi-zone high availability, Query Insights, schema recommendations, automated backups, and Metal clusters with locally attached NVMe storage. The launch required substantial engineering work to adapt PlanetScale’s Kubernetes-based architecture to Azure networking constraints, particularly by allocating pod IP addresses in /28 blocks per node rather than individually, increasing network capacity from roughly 65,000 to more than one million pod IPs and reducing reliance on the Kubernetes API during pod startup. The company also addressed API limitations, bootstrap networking needs, storage, load balancing, identity, and backups, validating the design through scale tests involving more than 6,700 pods across over 100 node pools. New databases can be created by selecting Azure during setup, while customers seeking to migrate existing databases can contact PlanetScale support.
Oct 13, 2026
665 words in the original blog post.
PostgreSQL’s TOAST mechanism automatically handles oversized variable-length values such as text, jsonb, and bytea once a complete row exceeds roughly 2,032 bytes, first attempting compression and then moving data into an associated TOAST table in chunks when necessary. A value of 2,000 repeated characters can remain uncompressed because its row fits exactly at the threshold, while adding one character can trigger LZ4 compression and reduce it dramatically. TOAST behavior is controlled by column storage strategies, with the usual EXTENDED setting permitting both compression and out-of-line storage, while EXTERNAL avoids compression and MAIN prioritizes keeping data in the main row. PostgreSQL 19 changes the default TOAST compressor from pglz to LZ4 where LZ4 support is available, favoring faster compression and decompression even though pglz can sometimes produce smaller results, particularly for repetitive JSON-like data. LZ4 generally performs better for common workloads and data with repeats farther apart, whereas pglz can efficiently retrieve short prefixes of large compressed values because PostgreSQL can limit how much compressed data it reads. Compression saves storage, cache space, WAL traffic, and backup volume but adds CPU overhead and does not reduce client network output, making EXTERNAL storage preferable for already-compressed files or large binary data requiring efficient random reads. TOAST differs from PostgreSQL large objects by being automatic, limited to 1 GB per value, and deleted with its owning row, while large objects require explicit management and can store up to 4 TB.
Oct 12, 2026
2,717 words in the original blog post.
TIN v1.0.6 for PostgreSQL full-text search introduces language-specific stemming across 18 Snowball-supported languages and improves ranked top-k searches that use deterministic secondary sorting fields by extending its block-max query plan to tiebreaker queries. Stemming requires rebuilding affected indexes after upgrading, while the new tiebreaker optimization is delivered without an index-format change or required customer action. Using an 85 GB Stack Exchange corpus with 150 million documents and 1,254 synthetic queries on Intel x86-64 and ARM64 EC2 systems, the authors report that TIN outperformed ParadeDB 0.26.0 for top-10 conjunction, disjunction, phrase, and mixed query workloads, with especially strong results under TIN’s default scoring mode. That default excludes highly common terms from BM25 scoring to reduce CPU work while retaining them for search matching; users can instead select full BM25 scoring or configure the rarity threshold. The post also notes that x86-64 systems with AVX-512 were substantially faster than ARM64 for these text-search tests and contrasts TIN’s unchanged index size with a ParadeDB optimization that reportedly increased index size and required rebuilding indexes.
Oct 08, 2026
1,884 words in the original blog post.
Admission control determines whether software work should proceed based on factors such as permissions, capacity, priority, or concurrency, and the text traces one common mechanism, the leaky bucket, from ancient water clocks and Athenian court time limits to modern network and API rate limiting. In software, leaky or token buckets track the amount of admitted work and replenish capacity over time, allowing bursts while enforcing a sustainable average rate; Shopify’s GraphQL API is presented as an example that prices requests by estimated query cost and exposes bucket state to clients. The piece argues that databases particularly need pre-execution admission controls because systems such as Postgres and MySQL can attempt more work than they can safely handle, while existing timeout settings often act only after resources have been consumed. It introduces PlanetScale’s Database Traffic Control for Postgres as a system that uses tagged queries and resource budgets to warn on or block work before execution, estimating query costs from plans and historical behavior and applying settings for server share, burst capacity, per-query limits, and concurrent workers.
Oct 07, 2026
1,835 words in the original blog post.
PlanetScale has introduced dedicated read replicas for Postgres, allowing users to create, size, configure, and connect to asynchronously replicated database instances independently of the primary cluster. Replicas can be deployed in geographically distant regions to reduce read latency for global users or within the same region to isolate workloads such as vector search, analytics, and long-running queries from transactional production traffic. They can be managed through the PlanetScale dashboard, API, or CLI, with configurable compute, memory, disk size, IOPS, throughput, and storage characteristics tailored to each replica’s needs.
Oct 06, 2026
365 words in the original blog post.
Neki, a PostgreSQL sharding router, is designed to minimize overhead by retaining PostgreSQL protocol bytes and decoding data only when routing, sorting, grouping, or other operations require it. Unlike systems that eagerly convert every returned row and column into internal objects, Neki can forward raw query responses directly to clients, inspect only bind parameters needed to select a shard, and preserve text or binary value formats. For cross-shard queries, it progressively exposes more structure as needed: limits require identifying row boundaries, global sorting requires decoding only sort keys, and projections can remove or reorder columns by copying raw column frames rather than deserializing values. Fully decoding and reserializing values remains necessary for operations such as cross-shard aggregation, where the router must compare group keys and generate new results. This layered model allows rows to combine original wire messages with selectively cached decoded values, improving efficiency while preserving correctness for complex data types, encodings, NULLs, extension values, and byte-sensitive cases such as floating-point NaN payloads.
Oct 01, 2026
3,546 words in the original blog post.