a curated list of database news from authoritative sources

November 26, 2026

Grand Team Assemble: Percona Meet-up at Phuket

On November 19, half the planet was staring at a progress bar, waiting for 212 GB of Vice City to download. GTA VI went on to do $3.79 billion on day one. Biggest entertainment launch ever. A few weeks earlier, a different crew had already loaded into its own open world. No controllers. Just laptops, … Continued

The post Grand Team Assemble: Percona Meet-up at Phuket appeared first on Percona.

Can we save VLDB and SIGMOD?

I just bid on the 500+ submissions for this month's VLDB submission deadline. That's quite a number for a non-peak month. SIGMOD had about 2,000 submissions this year. Together, VLDB and SIGMOD will likely have over 5,000 submissions, all of which need to be reviewed.

I don't envy the PC chairs who have to heroically manage this flood. Program committee sizes are growing quickly, but everyone involved seems frustrated: reviewers are overloaded, authors get random reviews, and outcomes are becoming more and more random.

Maybe all this effort would be worth it if the estimated 1,000 accepted papers all contained great scientific breakthroughs. But instead, we get many superficially good-looking submissions with little novelty that are hard to read and review because AI currently writes well at the sentence level but not at the level of an entire paper.

The accelerating growth in paper submissions is driven by two multiplicative effects: (1) China's huge investment in science and (2) the use of AI in research, which makes it much easier to implement ideas, run experiments, and write papers. Given the current incentive structures in most of academia, it is only logical that submission numbers are increasing. I suspect that this trend will only accelerate as we learn to use agentic AI even better. And the more random the reviewing process becomes, the more rational it becomes to submit more papers. The kinds of institutional reforms currently discussed seem way too incremental and will not fundamentally change things.

Like many others, I tried out a number of different research ideas using agents over the past months, and for half a dozen of them, I got amazing results that I would have published in the past. Each typically took at most a couple of days of prompting for what would previously have been many months of work. AI also greatly accelerates the production of mediocre (but not very good) writing.

I think the only way forward is for the bar for publishing to go way up. The value of research in the real world is actually increasing, e.g., because good ideas can be integrated into systems much more quickly. Conversely, a lot of the incremental busywork that we are used to accepting at conferences because it took a lot of effort to implement and write up may actually have little or even negative value.

CedarDB 2026: Release Rewind

This post kicks off an end-of-year recap of the most impactful features we have shipped in CedarDB across our 2026 releases. Whether you have been following along closely or are just catching up, here are the additions we are most excited about.

zstd Compression

v2026-05-13, v2026-06-23, v2026-07-22

CedarDB has always stored cold data in a compact, analytics-optimized format. Every column gets a lightweight encoding, such as dictionary or frame-of-reference encoding, that shrinks the data and that queries can work on directly. Earlier this year we added ALP for floats and FSST for text to that toolbox. Now, CedarDB adds a second layer on top: cold data on disk is compressed with zstd by default.

While encoding and compression achieve the same thing, a reduction in on-disk size, they are two different tools. Encodings target a specific pattern in the and can allow efficient queries on the encoded data. General-purpose compression like zstd, on the other hand, finds redundancy that encodings leave on the table at the cost of needing to fully decompress the entire data for querying. We covered the trade-offs in detail in Encoding or Compression: Why not both?. The short version of that post is that CedarDB still keeps data encoded for processing and now additionally uses zstd to further reduce the size on disk.

On ClickBench’s hits table, zstd shrinks the encoded data from 21.4 GiB to 7.8 GiB, an additional almost 3x reduction on top of encoding. Best of all, zstd has no impact on the hot path. Once data is loaded into memory, it has the same encoded representation as without zstd, so queries on buffered data run exactly as fast as before. Decompression only happens when cold data is read from disk, and CedarDB applies zstd only where it actually pays off to do so on a fine-grained block level.

zstd is enabled by default for new tables. If you prefer to skip it, you can still turn it off per table:

CREATE TABLE events (id INT, kind TEXT, created_at TIMESTAMP) WITH (compression = none);

-- Switch an existing table back to zstd for newly written blocks
ALTER TABLE events SET (compression = zstd);

Changing the setting takes effect the next time data of that table is written to disk, so existing blocks stay as they are until they are rewritten.

To see how well your own tables compress, query the cedardb_compression_infos system view:

SELECT attributename, encoding, generalcompression,
 encoding_ratio, compression_ratio, total_ratio
FROM cedardb_compression_infos
WHERE tablename = 'hits';

Time-Series Helpers

v2026-05-13, v2026-09-16, v2026-10-08, v2026-10-22

CedarDB now supports three PostgreSQL functions for working with time series and messy imported data:

  • generate_series over numerics and timestamps, not just integers
  • make_interval(), which builds an interval from named parts
  • to_timestamp() / to_date() with format strings, which parse dates in any layout

Together they cover two common tasks: making a regular time grid so gaps in your data show up, and turning dates that aren’t ISO formatted into real date and timestamp values.

generate_series over numerics and timestamps

generate_series(start, stop, step) returns one row per step. Besides integers, it now accepts numeric bounds with a fractional step:

select * from generate_series(0.0, 1.0, 0.25);
-- 0.00, 0.25, 0.50, 0.75, 1.00

select * from generate_series(10.5, 9, -0.5);
-- 10.5, 10.0, 9.5, 9.0

It also accepts timestamps with an interval step:

select * from generate_series(timestamp '2026-11-01 00:00',
 timestamp '2026-11-01 03:00',
 interval '1 hour');
-- 2026-11-01 00:00:00, 01:00:00, 02:00:00, 03:00:00

Gotcha: Each step is added to the previous value, so month steps that start on the 31st get clamped and stay clamped: 2026-01-31, 02-28, 03-28, 04-28, …. PostgreSQL does the same. To get month ends, start on the 1st and subtract a day.

make_interval()

make_interval(years, months, weeks, days, hours, mins, secs) builds an interval from its parts. Every argument defaults to 0, so named arguments are the easiest way to call it:

select make_interval(hours => 36, mins => 15);
-- 36:15:00

select make_interval(years => 1, months => 2, weeks => 1); 
-- 1 year 2 mons 7 days

select make_interval(secs => 1.5); 
-- 00:00:01.5

select timestamp '2026-11-13 09:00' + make_interval(days => 3);
-- 2026-11-16 09:00:00

Its main advantage over interval string literals is with parameters. make_interval(mins => $1) takes a number straight from your application, so you don’t need to build '15 minutes' with string concatenation.

to_timestamp() / to_date() with format strings

to_date(text, format) and to_timestamp(text, format) parse a string using the same template patterns as to_char: DD, MM, YYYY, Mon, HH12, HH24, MI, SS, AM, TZH, and so on.

select to_date('13.11.2026', 'DD.MM.YYYY'); -- 2026-11-13
select to_date('Nov 13, 2026', 'Mon DD, YYYY'); -- 2026-11-13
select to_date('13-NOV-26', 'DD-MON-YY'); -- 2026-11-13
select to_timestamp('11/13/2026 4:05 PM', 'MM/DD/YYYY HH12:MI AM');
select to_timestamp('20261113-160512', 'YYYYMMDD-HH24MISS');
select to_timestamp('2026-11-13 16:05 +05', 'YYYY-MM-DD HH24:MI TZH');

to_timestamp returns a timestamptz. If the input has a zone offset (TZH, TZM), it is applied; otherwise the input is read in the session time zone. The parser follows PostgreSQL’s rules, including the less obvious ones. For example, two-digit years resolve to the year closest to 2020, and whitespace between numeric fields is tolerated.

Example: Filling gaps in an hourly series

Sensors don’t report every hour, and a plain GROUP BY date_trunc('hour', …) leaves out the hours with no readings. That’s misleading on a chart. To fix it, generate the full hourly grid and left-join the measurements onto it:

create table measurements (sensor_id int, measured_at timestamp, temperature numeric(5,2));
insert into measurements values
 (1, '2026-11-13 00:12', 4.10), (1, '2026-11-13 00:47', 4.30),
 (1, '2026-11-13 01:05', 3.90),
 (1, '2026-11-13 04:31', 2.80), (1, '2026-11-13 04:55', 2.60);

with hours as (
 select h
 from generate_series(timestamp '2026-11-13 00:00',
 timestamp '2026-11-13 05:00',
 make_interval(hours => 1)) as g(h)
)
select h as hour,
 count(m.temperature) as readings,
 round(avg(m.temperature), 2) as avg_temp
from hours
left join measurements m
 on m.measured_at >= h and m.measured_at < h + make_interval(hours => 1)
group by h
order by h;
hour readings avg_temp
2026-11-13 00:00:00 2 4.20
2026-11-13 01:00:00 1 3.90
2026-11-13 02:00:00 0 NULL
2026-11-13 03:00:00 0 NULL
2026-11-13 04:00:00 2 2.70
2026-11-13 05:00:00 0 NULL

The quiet hours now appear with readings = 0. To change the resolution, pass a different step, such as make_interval(mins => 15), or pass it as a query parameter.

Example: Parsing non-ISO dates from imported data

CSV exports from spreadsheets and ERP systems seldom use ISO dates. A common approach is to load the raw columns as text and convert them in SQL:

create table raw_orders (order_id int, order_date text, shipped text);
insert into raw_orders values
 (1001, '03.11.2026', '11/05/2026 2:30 PM'), -- German order date, US ship time
 (1002, '14.11.2026', '11/17/2026 9:05 AM'),
 (1003, '1.12.2026', '12/02/2026 11:45 AM');

select order_id,
 to_date(order_date, 'DD.MM.YYYY') as ordered,
 to_timestamp(shipped, 'MM/DD/YYYY HH12:MI AM') as shipped_at,
 to_timestamp(shipped, 'MM/DD/YYYY HH12:MI AM')::date
 - to_date(order_date, 'DD.MM.YYYY') as days_to_ship
from raw_orders
order by order_id;
order_id ordered shipped_at days_to_ship
1001 2026-11-03 2026-11-05 14:30:00+01 2
1002 2026-11-14 2026-11-17 09:05:00+01 3
1003 2026-12-01 2026-12-02 11:45:00+01 1

The format string removes the ambiguity: 03.11.2026 is March 11th to an American and November 3rd to a German, but DD.MM.YYYY reads it one way only. Unpadded values such as 1.12.2026 also parse. To keep the typed data, finish with create table orders as select …, or use the same expressions in an insert … select.

Range Types

v2026-05-18

Range types are a convenient way to define a range of values between two bounds. Instead of manually creating two columns and having to worry about NULL values, inclusiveness of bounds or getting queries on them right, CedarDB handles the whole interval in a single value with built-in operators.

Take a room booking system. Each booking is a single tstzrange:

CREATE TABLE bookings (
room INT,
guest TEXT,
stay TSTZRANGE
);

INSERT INTO bookings VALUES
(101, 'Ada', '[2026-12-20 15:00, 2026-12-23 11:00)'),
(101, 'Grace', '[2026-12-27 15:00, 2027-01-02 11:00)');

Two operators answer the common questions. Containment (@>) tells you who is in a room at a given moment. Overlap (&&) tells you whether a new request clashes with an existing booking:

  • Who is in room 101 on New Year’s Eve at midnight?
SELECT guest FROM bookings
WHERE room = 101 AND stay @> '2026-12-31 23:59:59+00'::timestamptz;
  • Is room 101 free from Dec 22 to Dec 28?
SELECT count(*) = 0 AS available FROM bookings
WHERE room = 101 AND stay && '[2026-12-22 15:00, 2026-12-28 11:00)';

See the range type documentation for more features, such as open-ended ranges or other operators and functions.


That’s it for now!

See you soon in the next edition of the release rewind. It’s going to cover improvements for DDL statements and configuration management.

Want to try out the new features right away? Head to CedarDB Cloud and run the queries on the shared demo project or your own trial instance, free of charge for 30 days.

Prefer working locally? Have a look at our installation guide.

Questions or feedback? Join us on Slack or reach out directly.

November 25, 2026

Village News: MySQL News + Events (25 November 2026)

Welcome back to Village News, our curated roundup of MySQL and database news. This week, Oracle's November CSPU brought 10 security fixes for MySQL, PostgreSQL 19 reached general availability, and MariaDB 13.1 went stable.

If you want to get these updates, just subscribe to the blog.

Enjoy!

Introducing Supabase Knowledge Base

Migration guides, troubleshooting, FAQs, tutorials, and community guides for applied Supabase answers, all in one place your coding agent can read.

November 24, 2026

Meaningful Human-in-the-Loop Checking of GenAI Synthesis for Restricted Languages

When the only comment on a PR is "LGTM", due diligence has not been done. A glance is not understanding. Understanding has levels, and we almost always overestimate ours. But the LGTM stamps the code as correct anyway. Make no mistake (pun intended), this is also true for LLM-generated code, even with so-called "correct-by-construction" approaches.

Why does verification catch anything at all? Because of redundancy. You write the specification carefully and then write the implementation separately, and the verification check finds the places where the two disagree.

LLM code synthesis throws that away. It derives the implementation from the specification, so the two can almost never disagree. Correct-by-construction becomes a dangerous misnomer. If the specification is wrong, the implementation is wrong in exactly the same way. Better models will not fix this. Any move from natural language to a specification leaves an intent gap between what the user meant and what the specification captures. The devil is in the cornercases.


We need to do better than LGTM.

This ECOOP 2026 paper is brought to you by Brown. To resolve ambiguity in LLM-generated specification snippets, the paper introduces PICK, a human-in-the-loop tool that eliminates mismatched candidate formulas by asking users to classify concrete distinguishing scenarios sampled from the candidates' semantic differences. PICK brings the redundancy back in verification checks. Your answers about concrete cases are a second statement of intent, made in a different form than the prose prompt.


The idea

PICK derives not one but four candidate expressions from the user's prose description. It computes where the candidates disagree, and samples concrete scenarios from those regions to show them to the user two at a time, in a this-or-that format. The scenarios they study in the paper are strings for regexes, traces for LTL, and requests for access-control policies. The target is restricted languages for now as the title says. The user accepts or rejects each scenario, and each vote is checked against every candidate. A candidate is eliminated after two downvotes and needs at least one upvote to be selected. This repeats until one or zero candidates remain.

Each classification is checked against every candidate, not just against the one the scenario came from. Accept a scenario and every candidate whose language contains it gets an upvote, while the ones that exclude it get a downvote. One answer updates several candidates at once, and this keeps the number of questions small.

Rejecting is deliberately asymmetric. If you reject a scenario, the candidates that accept it get downvoted, but the candidates that also reject it get nothing. Otherwise a candidate could win by outlasting the others rather than by being chosen. A candidate has to earn at least one upvote to get selected. Ending with zero candidates is a legitimate outcome. It means either the LLM produced nothing correct or the user's intent is inconsistent.

How restricted do these languages need to be? Not very. You need to compute the set difference between two candidates, which means closure under negation and intersection. You need to decide equality, so that candidates with identical meaning can be collapsed before you waste questions on them. And you need to sample concrete instances out of a difference set. Regexes qualify. LTL qualifies, and they use Spot to generate the traces. ABAC (attribute-based access control) qualifies once you bound the entities.

Notably  SQL does not as query containment is undecidable. The paper also gives a second reason: A query means nothing without a database, so the object the user has to judge is a query-and-database pair.


The experiments

The regex and ABAC studies had three groups of 50 participants each, recruited through the Prolific platform. Everyone got the same task: here are four candidate expressions, pick the right one. 

The groups differ only in what help they get. The control group saw the four candidates and picked one, with no examples. They could also say none was correct, or that they were unsure. The other two groups used PICK and classified scenarios instead of reading formulas. One of those two could see the candidate list while classifying and the other could not. This is how they test whether seeing the formulas helps at all, but this turned out to make no measurable difference.

Regex experiment: On abWords (a/b strings with b in every even position), control got 22% right, versus 60-72% with PICK. The most common wrong answer, chosen by 19 of 50, was ~((a|b)b)+~, which requires even length. On Dates, where no candidate was correct, control got 26% and PICK 66-70%. Of the 13 control participants who said they regularly write regexes, none got both abWords and Dates right.

ABAC experiment: Significant improvement on two of the three policies. PICK users were also 2-4 times more likely to eliminate every candidate, while control users tended to pick a wrong policy that was close to the correct one. I think this is the right behavior. A subtly wrong policy may go unnoticed for a long time, whereas an empty result tells you immediately that something needs fixing.

LTL: There was no new control group. The candidates were formulas that LTL-trained participants wrote in two earlier studies by the same group, and those participants' accuracy served as the baseline. PICK users were crowdworkers with no LTL background who never saw a formula. On RedOnce ("red is on in exactly one state"), they got 68% versus about 25%. Pooled across three problems, 56% versus about 44%.


Inverting PICK: a Paxos tutor

The PICK idea should also work for TLA+. You write a prose description, an LLM gives you several candidate specs, and PICK asks you about concrete behaviors until one survives. That would close the intent gap, but the hard part is the design, not the theory. The regex, LTL, and access-control scenarios are considered toy compared with a full TLA+ spec. How to apply PICK in a scalable and manageable wayto a TLA+ spec is an open question. What do we show, and at what level of abstraction? I have not attempted that, but instead I tried something simpler: a Paxos tutor built on the PICK idea.

PICK assumes the specification is unknown and the user is the oracle. We flip that around here. The Paxos specification is known, but in this case the user would need to be brought up to speed on it. Following this approach, I built an interactive Paxos tutor. Ok, Opus 5.5 built it, but I had to babysit it over at least ten rounds. It is hard to teach a machine empathy for the user. And it turns out, as I suspected, distributed algorithms are still very hard for an LLM to manage, even with TLC as a backend.

The app is called "Do you Paxos?" and it is available here. The candidates are correct Paxos plus eleven mutants, each one a misconception people hold. Questions come from the steps where correct Paxos and a mutant disagree. None of this is hand-written. The app runs its own Paxos state machine, and every question is generated from one of its reachable states, with the answer attached. A TLA+ spec of Paxos is checked against that state machine on every build, so the two cannot drift apart. 

Less WAL, More Transactions: PostgreSQL and HorizonDB in VS Code

The previous post in this 9-TiB TPC-C PostgreSQL series ended with a direction: keep commit durability, but move persistence work away from the PostgreSQL writer. Here I look at what that architecture looks like in the dashboard, with PostgreSQL and HorizonDB running side by side.

I use the Microsoft PostgreSQL extension for Visual Studio Code. Its Waits, Overview/Metrics, and Queries tabs put backend activity, PostgreSQL counters, and statement statistics next to each other. The interesting part is not just which system completes more transactions. It is what the backends are doing while those transactions execute.

The comparison behind the screenshots

This November 9 measurement reused the two 95,000-warehouse databases, approximately 9 TiB each. Both ran public HammerDB 6.1.1 with the standard, nonpartitioned workload: 512 active workload users, a 15-minute ramp-up, and a 45-minute measurement.

Configuration PostgreSQL/Patroni HorizonDB
Writer compute E64bds_v5, 64 vCPUs / 512 GiB Intel Gen1, 64 vCores
Data storage 20-TiB Ultra SSD, NVMe Disaggregated, shared storage
Shared buffers 128 GiB (leaving room for OS buffers) Approximately 362.83 GiB
Workload synchronous_commit local with no HA on for multi-zone HA

The Ultra SSD was provisioned for 294,800 IOPS and 7,800 MB/s, with data and WAL on the same device to be sure not to be limited by the Premium SSD read ceiling I observed in the first run.

On PostgreSQL, synchronous_commit=local means that commit waits for the primary's WAL to become durable, but not for a standby acknowledgement. Replication remains enabled, asynchronously with respect to the commit response. Automatic Patroni failover was paused for this measurement. I'm deliberately comparing RPO>0 PostgreSQL on zone failure vs RPO=0 HorizonDB to focus on performance without high availability concerns.

In the paired screenshots, PostgreSQL/Patroni is on the left and HorizonDB on the right. The dashboard history includes ramp-up and some time outside the measurement. The HammerDB results below cover the 45-minute measurement.

More transactions with the same number of workers

The transaction and tuple graphs show a much higher level of activity on HorizonDB. Look at the axes as well as the lines: the panels use different vertical scales.

The completed HammerDB runs report:

Measured throughput PostgreSQL/Patroni HorizonDB
New Orders Per Minute (NOPM) 47,651 436,132
PostgreSQL Transactions Per Minute (TPM) 110,037 1,003,592

That is 9.15x the NOPM in this pair of runs. NOPM is the workload's completed new-order rate. PostgreSQL TPM comes from database transaction counters. The dashboard's System - 10s transaction chart at the top left displays activity per collection interval, not the final HammerDB NOPM result.

With the same 512 workload users, the higher throughput means that those workers get through more work rather than spending as much time queued behind shared resources. The Waits tab shows where that difference becomes visible.

PostgreSQL queues behind WAL writes

The left wait stack is dominated by PostgreSQL lightweight locks. On the right, the largest band is an extension wait associated with HorizonDB storage reads.

These are selected rows from the displayed ranking:

Wait event PostgreSQL/Patroni HorizonDB
LWLock:WALWrite 80.4% 14.9%
LWLock:BufferContent 10.0% 0.5%
IO:DataFileFlush 4.4% N/A
IO:DataFileRead 3.2% N/A
Extension:HorizonDB_Storage_Read N/A 63.3%
LWLock:WALInsert 0.2% 9.8%

The percentages are shares of sampled backend observations in that dashboard history, not a transaction-latency breakdown. Its CPU category likewise is not host CPU utilization.

LWLock:WALWrite is a lock wait, not a direct measurement of disk-write duration. PostgreSQL serializes WAL writing and synchronization through this lock. While one backend performs that work, many other backends can wait for the lock before checking whether their own WAL position is already durable. Group commit lets a flush cover several transactions, but the waiting sessions still depend on that flush completing.

This explains why a slow WAL synchronization path can appear as hundreds of lock waiters rather than hundreds of sessions directly reporting an I/O wait. The separate 10-second capture inside the measured windows found an average of 426 active client backends at WALWrite on PostgreSQL, versus 79 on HorizonDB.

The WAL counters also report an average synchronization time of 29.79 ms per sync on PostgreSQL, versus 2.10 ms on HorizonDB. These are means of the reported WAL synchronization operations, not transaction commit latencies. They describe different persistence paths: a native local WAL flush on one side and the service's WAL durability path on the other.

Removing standby acknowledgement waiting therefore did not remove PostgreSQL's main queue. The primary still had to persist WAL locally.

Why the faster system still shows storage-read waits

HorizonDB_Storage_Read is the leading visible wait on the faster system. That identifies a page-request path and does not, by itself, identify an exhausted disk IOPS budget.

The HorizonDB storage architecture separates WAL servers from page servers. WAL servers specialize in low-latency log operations. Data pages are sharded across page servers, and a filtering service sends each shard the WAL relevant to its pages. Storage capacity and servicing work are not concentrated behind the writer's one attached data disk.

This is scale-out storage underneath one writer, not distributing these write transactions across multiple nodes. Requests still have latency, and a backend waiting for a page response exposes that latency as an extension wait. Once the large WAL queue is reduced, the read path occupies a larger share of the remaining observations. A leading read wait can coexist with much higher throughput.

On native PostgreSQL, DataFileRead is only 3.2% of the displayed observations. Together with the provisioned Ultra SSD budget, that shows why this comparison is no longer primarily about the original read-device ceiling. Reads remain work to do, but WAL serialization dominates this native run. Asynchronous replica acknowledgement also removes the standby wait from its commit path.

More WAL records, fewer WAL bytes

The next screenshot contains a useful apparent contradiction: HorizonDB produces many more WAL records, but fewer WAL bytes.

The bottom row is the important one here. WAL Bytes Written represents generated WAL bytes per collection interval, not physical disk bandwidth.

Counter differences over approximately 2,693 seconds inside each measured window give:

WAL metric PostgreSQL/Patroni HorizonDB
Generated WAL 327.22 GiB 173.69 GiB
WAL generation rate 124.42 MiB/s 66.04 MiB/s
WAL records 193,342,220 1,605,838,664
Full-page images 80,977,418 9,714,339
Mean bytes per WAL record 1,817 116

HorizonDB generates approximately 8.3 times as many records while producing about half the bytes. Dividing the generation rates by the reported PostgreSQL TPM gives an approximate 69.47 KiB versus 4.04 KiB of WAL per reported transaction, about 17.2x less on HorizonDB. That normalization includes background WAL and uses the nearby counter interval, so it is a workload-level indicator.

Why torn-page protection changes WAL volume

A PostgreSQL data page is normally 8 KiB. Writing it is not necessarily one crash-atomic operation through the filesystem and storage stack. A crash during a write can leave a mixture of old and new page contents: a torn page.

Normal WAL records describe changes to a page. Recovery needs a valid page on which to apply those changes. To protect against a torn page, PostgreSQL normally includes a full-page image on the first modification of that page after a checkpoint. WAL containing the recovery information must be durable before the data page is written. The PostgreSQL full-page-writes explanation describes this ordering.

On a large, write-heavy database, touching many different pages after checkpoints adds substantial image traffic to the log. Compression reduces the image bytes, but it does not remove the need to generate and process that protection.

The captured settings were:

Setting PostgreSQL/Patroni HorizonDB
full_page_writes on off
wal_compression zstd lz4

HorizonDB can move that responsibility because its page servers protect against torn pages. As described in the storage design, compute persists changes through WAL and the storage layer reconstructs and persists data pages. PostgreSQL compute does not have to log the usual full-page images to protect its own durable data-file overwrites.

The protection has moved into storage, not been discarded. An Ultra SSD upgrade alone does not make that architectural change, and turning off full_page_writes on conventional storage is not the equivalent.

The HorizonDB image counter is still nonzero: full_page_writes=off does not prohibit every operation from emitting a page image. Also, wal_fpi counts images, not their compressed bytes. What the measurements show directly is much lower image frequency relative to WAL records and much lower WAL volume for the transactional work performed.

That reduces the amount of data entering the WAL persistence path. Combined with a purpose-built WAL service, it explains the direction of the throughput difference much better than the phrase "faster disks."

Checkpoint counters do not mean the same physical I/O

The same screenshot shows checkpoint activity on both systems. The retained measured-window counters report 3 requested checkpoints on PostgreSQL and 16 on HorizonDB, and 3,420,969 versus 150,107,572 checkpointer buffers written.

Those larger HorizonDB buffer counters do not contradict offloaded persistence. The dashboard exposes PostgreSQL engine activity, while the service changes how durable page storage is implemented. They cannot be converted into an equivalent number of physical writes to a compute-attached SSD.

In native PostgreSQL, the checkpointer and background writer write durable relation pages through the primary's filesystem and storage path. In HorizonDB, durable data-page writing and recovery belong to the page servers. Checkpoint-related coordination and buffer activity can remain visible on compute without recreating the native data-file persistence path.

Cache hits are another part of the picture

The top row shows cache-hit ratios high on both sides, with more buffer activity on HorizonDB. The shared-buffer configurations are different: 128 GiB versus approximately 362.83 GiB.

HorizonDB also has a compute-local NVMe SSD cache, adding another tier before remote page storage. PostgreSQL's buffer-cache-hit graph is not a measurement of that SSD cache's hit rate. A page absent from shared buffers is not automatically a remote storage read, and a small SSD-cache wait share does not count how many quick cache hits occurred.

The read-side explanation therefore includes both a different cache hierarchy and a distributed page-serving layer. It is not simply that the two systems read the same pages from different SSD models.

Higher throughput is not a uniform query-latency multiplier

The Queries tab gives another view of the workload. These snapshots were taken around 18:30-18:31 CET, before the final throughput result.
PostgreSQL:

HorizonDB:

Selected displayed means are:

Statement label PostgreSQL/Patroni HorizonDB
neword 91 ms 31 ms
payment 8 ms 5 ms
slev 165 ms 143 ms
delivery 63 ms 68 ms
ostat 2 ms 3 ms

New-order execution has a substantially lower displayed mean, as does payment. Delivery and order-status do not. These are statement-entry means from the displayed statistics history, with all databases and users selected, rather than the final HammerDB measurement.

The prepare neword ... labels identify pg_stat_statements entries. They do not mean that the displayed duration is merely SQL preparation overhead. Total statement time sums concurrent execution: HorizonDB can show more total hours while also showing a lower mean and many more calls.

This is why I read throughput, waits, WAL, and query statistics together. Higher system throughput does not require every statement to be faster by the same factor. Reducing a heavily shared persistence queue changes how much work the whole workload can complete.

The architectural difference is visible

The earlier posts followed successive limits: data reads, WAL synchronization, and shared-buffer contention. This comparison returns to locally durable commits on native PostgreSQL, with Ultra SSD storage and no standby acknowledgement wait, and observes the two systems together.

The dashboard tells a consistent story:

  • PostgreSQL still concentrates sessions behind WALWrite, even after the read-storage upgrade and removal of replica acknowledgement waiting.
  • HorizonDB generates much less WAL for much more transactional work, consistent with moving torn-page protection out of PostgreSQL's normal full-page logging.
  • The visible wait mix shifts toward page requests and remaining WAL coordination, supported by a larger buffer cache, an SSD cache, and scale-out page storage.
  • Checkpoint activity remains visible, but durable data-page persistence is no longer the writer's native filesystem work.

HorizonDB keeps WAL as the durable record of changes, while dedicated storage services handle log durability, replication, and page materialization. The writer does less persistence work, and less image-associated WAL enters its critical path.

The 9.15x NOPM is the measured outcome of this pair. The screenshots make the architectural explanation concrete: not just more IOPS, but less work concentrated on the PostgreSQL writer.

Percona Database Service Is Now Open Source

We have some exciting news to share: Percona Database Service (PDS) is now open source! The source code is available on GitHub under the Apache 2.0 license, and we’ve also launched a redesigned PDS website to make it easier to explore and get started. When we first introduced PDS, our goal was simple: make deploying … Continued

The post Percona Database Service Is Now Open Source appeared first on Percona.

Oracle’s November CSPU and Percona for MySQL

Oracle published its November 2026 CSPU (Critical Security Patch Update) on November 17, with 10 new security patches for MySQL. Three of them can be exploited over the network without authentication. Percona tracks every Oracle security release, and we’re already working on this one. Oracle published the MySQL 8.4 source code for these fixes on … Continued

The post Oracle’s November CSPU and Percona for MySQL appeared first on Percona.

Pre-Calculating HugePages for PostgreSQL

Pre-Calculating HugePages for PostgreSQL Huge pages (HugeTLB) are one of the most important PostgreSQL tuning steps, and they must be right before the server starts. They matter mainly for stability and reliability, more than for speed. Recently I also came across reports of up to 30% performance gain as an added benefit, but only for … Continued

The post Pre-Calculating HugePages for PostgreSQL appeared first on Percona.

November 23, 2026

Putting Sixta to the Test: AI-Assisted MySQL Troubleshooting with PMM

Sixta is an AI agent that investigates database problems the way a DBA would. We wanted to evaluate how effectively it could diagnose MySQL problems using only the monitoring data already available in Percona Monitoring and Management (PMM). To test this, we set up a Percona Server for MySQL 8.0 primary-replica environment monitored by PMM. … Continued

The post Putting Sixta to the Test: AI-Assisted MySQL Troubleshooting with PMM appeared first on Percona.

How to Monitor Readyset with Percona Monitoring and Management

In a previous blog post, I showed how to add external exporters to Percona Monitoring and Management (PMM) and monitor Valkey/Redis. This time, let’s do the same with Readyset. Readyset is a caching layer that sits between your application and your MySQL or PostgreSQL database. It is wire-compatible with the database, so your application connects … Continued

The post How to Monitor Readyset with Percona Monitoring and Management appeared first on Percona.

November 22, 2026

"And You Would Be Supporting A Local Paper"

Last spring my dear friend Taber was doored while riding his bike, and came very close to dying. A friend and I got in our cars, made it to the hospital by three AM, and spent the next week caring for him. We traded off sitting at his bedside, making sure the machines keeping him alive stayed plugged in, coordinating with a dozen-odd specialists, taking notes, working with the medical and city bureaucracy, and transitioning to home care. My client was kind enough to let me take some time off, but I was still trying to work my way through a slew of database bugs during spare moments. We stayed in a hotel best described as “backrooms”, and I picked up a case of scabies. There was one point where I started crying while trying to pick out thank-you cards at Target. It was, in short, an exceedingly rough time, and it took the better part of a month to really recover.

Taber, thank goodness, has made a spectacular recovery, and I’m so happy for him. My friend who came to care for him was an incredible rock, and I couldn’t have asked for a more compassionate, diligent, and trustworthy partner. Our family and friends who took care of our homes and pets while we vanished—thank you so much. I’m incredibly grateful to everyone at Hennepin County Medical Center, the first responders, the folks at the Minneapolis Public Services building, the care workers, and everyone who donated to help get him back on track. I was, and remain, deeply moved.

This is by far the more important story, but something else happened that week—something so surreal and deeply silly that I want to relate it as well. I started getting spam.

I mean, we all get spam. As someone who’s been around the net for a while, I get a lot of it. But these emails got through the filters, and came almost every day. They were all from the same guy, “Tom Santogato”. They had the obnoxious hallmarks of LLM slop. Between trying to get video footage from the city and buying medical equipment, I’d read:

Hi Fabiola,

Quick question, when was the last time you knew exactly what your brand truly makes on every dollar spent? Most DTC founders tell me they track CAC and margins, but the reality they act on is often off by enough to flip decisions.

That’s why I built something different: a free 45-minute Financial Diagnostic that calculates true unit economics, contribution margin, CAC, and first-order profitability the way investors would, live on screen.

Here’s what makes it powerful:

📌 Real vs reported metrics: we reconcile your Shopify + ad platform data the right way.

📊 Understand what you actually keep on every sale: after discounts, shipping, returns, processing, and fulfillment.

🚀 Turn insights into action: plan budgets, scale channels with confidence, or prep for growth/raising capital.

✔️ All live. All transparent. No dashboards to guess from, just clarity.

If this feels like the kind of visibility missing from your strategy, let’s book a time — zero risk, no commitment, just real metrics that move decisions.

👉 Book your free 45-minute Financial Diagnostic: https://calendly.com/[redacted] 📆

Would Monday or Tuesday work better for you?

I clicked the unsubscribe link. I know this is usually a trap, but also, due diligence. They kept coming, of course.

Hi Fabiola,

I saw Woof posted about {{specific_hiring_initiative}} last week—and noticed your team has been actively engaging with hiring content over the past few days.

One thing we’ve found working with similar-sized teams: the biggest bottleneck in that phase isn’t usually finding candidates, it’s {{specific_pain_point_related_to_their_signal}}. Most teams don’t realize this until they’re 4-6 weeks in.

Not sure if that’s on your radar, but thought it was worth flagging given the timeline you’re working with.

Worth a quick conversation?

{{signature}}

To be clear, my name’s not Fabiola. Woof.group is a community forum that runs on a shoestring budget. We can’t hire anyone for anything, and certainly not {{specific_hiring_initiative}}. This would be immediately obvious to anyone who did a moment’s research.

I was exhausted and haunted by death, and these ridiculous, slop-filled emails kept coming, week after week. Staring into the middle distance, I booked the meeting he asked for, intending to ask him to politely to please stop emailing me. He canceled the meeting. I tried again. He canceled again.

The emails kept coming. I started calling him on the phone every time he sent an email. He never picked up. I was chatting with some friends about the emails—how I was at my wit’s end, how deeply stupid the whole thing was, and how many other people whose time he must be wasting. I asked if it would be reasonable and polite to write a physical letter to him asking him to stop sending spam. And someone suggested:

Too bad we don’t live in an age where you could take out a prominent newspaper ad in his home town paper

Another friend chimed in:

And you would be supporting a local newspaper

I called the ad manager of his local newspaper. It took a couple minutes to explain what was going on, I wanted to make sure it wouldn’t create any trouble for the paper, and she needed to run it by her team. But the answer came back, “yes”—and it was a lot cheaper than I thought. I got the dimensions and worked up an ad in Inkscape.

You know what? That worked! Haven’t gotten a single spam email from Tom since.

I can’t say this is time- or cost-effective. Mostly I just sigh and feed the email to the Bayesian filters, hoping they’ll catch it next time. But this spam caught me at an absurd, difficult time in my life, and in retrospect, I’m weirdly proud of what happened. Woof.group is tiny, which tells me that this campaign was likely casting a broad net. Somewhere out there, I bet there are thousands of people who were getting spam from Tom and rolling their eyes. I’d like to imagine that one day in July, the emails stopped for them too.

EXPLAIN ANALYZE shows the HorizonDB SSD cache hits/misses

HorizonDB separates storage from compute: PostgreSQL compute runs in front of remote storage for high availability, while a local SSD cache reduces remote reads for low latency.

In a previous post, when HorizonDB was in preview, I used EXPLAIN (ANALYZE, BUFFERS) and I/O timings to estimate whether PostgreSQL reads were coming from the local SSD cache or remote storage.

This is now directly visible in the execution plan with the SSDCACHE option:

EXPLAIN (ANALYZE, BUFFERS, SSDCACHE)
SELECT * FROM large;

For example, here is a sequential scan of a 56 GB table:


                               QUERY PLAN
---------------------------------------------------------------------------
 Seq Scan on large (actual time=0.138..207836.006 rows=7372800.00 loops=1)
   Buffers: shared read=7372800 dirtied=12800 written=1
   I/O Timings: shared read=200058.305 write=0.001
   SSD cache: hits=7372799 misses=1
 Planning Time: 0.022 ms
 Execution Time: 208112.478 ms

There are two levels of information here.

  • BUFFERS tells us what happened from PostgreSQL's point of view: Buffers: shared read=7372800. The scan didn't find these pages in PostgreSQL shared buffers, so it had to read 7,372,800 × 8 KiB = 56.25 GiB into them.

  • SSDCACHE tells us where those reads were satisfied: SSD cache: hits=7372799 misses=1. Of those reads, 7,372,799 pages—essentially the entire 56.25 GiB—were found in the local SSD cache. Only one 8 KiB page missed the cache and had to be read from the lower storage tier.

The important point is that an SSD-cache hit is still a PostgreSQL shared read. These are not two independent counters:

PostgreSQL needs a page
        |
        +-- shared hit --> already in shared buffers
        |
        +-- shared read
               |
               +-- SSD cache hit  --> read locally
               |
               +-- SSD cache miss --> lower storage tier

This makes SSDCACHE a useful complement to BUFFERS: BUFFERS shows whether PostgreSQL had to perform a read, while SSDCACHE shows whether the local SSD cache satisfied it.

Here's another example where the cache starts missing:

Seq Scan on large
  Buffers: shared hit=1786023 read=6917977
  I/O Timings: shared read=307554.308
  SSD cache: hits=6740355 misses=177074

Here, PostgreSQL performs 6,917,977 shared reads (52.78 GiB). Of these, 6,740,355 pages (51.42 GiB) hit the local SSD cache, while 177,074 pages (1.35 GiB) missed it.

Previously, I had to infer this distinction from I/O timings. Now, EXPLAIN (ANALYZE, BUFFERS, SSDCACHE) shows directly how PostgreSQL reads are distributed between the local SSD cache and the lower storage tier.

This cache hierarchy meets the needs of most OLTP applications:

  • a small, hot working set in PostgreSQL shared buffers, including current transactions, reference tables, and internal index pages. You expect Buffers: shared hit in EXPLAIN (ANALYZE, BUFFERS) for them.
  • a larger, warm working set in the local SSD cache, including recent transactions, pages awaiting vacuuming, and less frequently accessed data. You expect SSD cache: hits in EXPLAIN (ANALYZE, SSDCACHE) for them.
  • cold data served through the page servers or, when necessary, from blob object storage, where throughput and low cost matter more than low latency. You see SSD cache: misses in EXPLAIN (ANALYZE, SSDCACHE) for them.

Both SSD cache: hits and SSD cache: misses correspond to Buffers: shared read in EXPLAIN (ANALYZE, BUFFERS): the page wasn't already in shared buffers and had to be read into one. SSDCACHE adds the missing information about where that read was served from, which helps explain its I/O performance.

November 20, 2026

JSONB performance: declare access patterns to PostgreSQL query planner

A common drawback of storing data in JSON fields is limited planner visibility: the optimizer doesn't automatically inspect documents, so selectivity estimates for JSON (or JSONB or BSON) predicates are often weak when useful statistics aren’t available. That’s expected—if you choose JSON to avoid defining the full application schema in the database upfront, the database can’t infer everything about those fields.

But this isn’t an all-or-nothing tradeoff. Even in MongoDB, you still declare part of the schema in practice—especially filter fields—through indexes. PostgreSQL, gives you two levers:

  • expression indexes (which provide both access paths and statistics)
  • extended statistics (which improve estimates even without adding an index).

I'm using an example from an old article by Dan Robinson on the Heap blog: When To Avoid JSONB In A PostgreSQL Schema. At the time, PostgreSQL 9.4 didn't support extended statistics, but expression indexes could have solved this (example on db<>fiddle), avoiding the expensive nested-loop join and producing good cardinality estimates.

I've run the following in a lab:


CREATE TABLE measurements (tick BIGSERIAL PRIMARY KEY, record JSONB NOT NULL)
;
INSERT INTO measurements (record)
SELECT jsonb_build_object(
  'value_1', trunc(2 * random())::int,
  'value_2', trunc(2 * random())::int,
  'value_3', trunc(2 * random())::int,
  'scientist_id', trunc(10000 * random() + 1)::bigint
)
FROM generate_series(1, 100000)
;
CREATE TABLE scientist_labs (scientist_id BIGINT PRIMARY KEY, lab_name TEXT NOT NULL)
;
INSERT INTO scientist_labs (scientist_id, lab_name)
SELECT i,(ARRAY['California Scientific','Industrial Labs','Western Science People'])[(i % 3) + 1]
FROM generate_series(1, 10000) AS i
;
VACUUM (ANALYZE) measurements
;
VACUUM (ANALYZE) scientist_labs
;

Get the execution plan for this query:

EXPLAIN (ANALYZE, BUFFERS)
SELECT s.lab_name, COUNT( * )
FROM (
  SELECT (record ->> 'scientist_id')::BIGINT AS scientist_id
  FROM measurements
  WHERE (record ->> 'value_1')::INT = 0
    AND (record ->> 'value_2')::INT = 0
    AND (record ->> 'value_3')::INT = 0
) AS m
JOIN scientist_labs AS s
  ON s.scientist_id = m.scientist_id
GROUP BY s.lab_name
ORDER BY s.lab_name
;

The estimated cardinality for "measurements" after the filter is rows=1, which is why PostgreSQL chooses a Nested Loop. However, the actual row count is rows=12518.00, so "scientist_labs" is accessed loops=12518 times:

                                                                                   QUERY PLAN                                                               
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 GroupAggregate  (cost=5827.32..5827.34 rows=1 width=28) (actual time=145.667..166.436 rows=3.00 loops=1)
   Group Key: s.lab_name
   Buffers: shared hit=39186
   ->  Sort  (cost=5827.32..5827.33 rows=1 width=20) (actual time=139.215..150.787 rows=12518.00 loops=1)
         Sort Key: s.lab_name
         Sort Method: quicksort  Memory: 645kB
         Buffers: shared hit=39186
         ->  Nested Loop  (cost=0.29..5827.31 rows=1 width=20) (actual time=0.156..126.483 rows=12518.00 loops=1)
               Buffers: shared hit=39186
               ->  Seq Scan on measurements  (cost=0.00..5819.00 rows=1 width=105) (actual time=0.029..60.878 rows=12518.00 loops=1)
                     Filter: ((((record ->> 'value_1'::text))::integer = 0) AND (((record ->> 'value_2'::text))::integer = 0) AND (((record ->> 'value_3'::text))::integer = 0))
                     Rows Removed by Filter: 87482
                     Buffers: shared hit=1819
               ->  Index Scan using scientist_labs_pkey on scientist_labs s  (cost=0.29..8.31 rows=1 width=28) (actual time=0.002..0.002 rows=1.00 loops=12518)
                     Index Cond: (scientist_id = ((measurements.record ->> 'scientist_id'::text))::bigint)
                     Index Searches: 12518
                     Buffers: shared hit=37367
 Planning Time: 0.433 ms
 Execution Time: 166.557 ms
(19 rows)

Compare the Planned rows with the actual rows:

This is not optimal but easily fixed by indexing the fields used to filter:

CREATE INDEX measurements_value_1_idx ON measurements (
 ((record ->> 'value_1')::INT)
);
CREATE INDEX measurements_value_2_idx ON measurements (
 ((record ->> 'value_2')::INT)
);
CREATE INDEX measurements_value_3_idx ON measurements (
 ((record ->> 'value_3')::INT)
);
ANALYZE measurements;

We index an expression to retrieve its value by using the full path, and specify the data type the filter uses. This is like declaring part of the schema for the "schemaless" datatype—the parts correspond to the access pattern.

ANALYZE also gathers statistics about the index keys for the query planner, which uses them for the query:

                                                                              QUERY PLAN                                                                    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Sort  (cost=4309.88..4309.88 rows=3 width=28) (actual time=96.348..96.403 rows=3.00 loops=1)
   Sort Key: s.lab_name
   Sort Method: quicksort  Memory: 25kB
   Buffers: shared hit=1977
   ->  HashAggregate  (cost=4309.82..4309.85 rows=3 width=28) (actual time=96.310..96.362 rows=3.00 loops=1)
         Group Key: s.lab_name
         Batches: 1  Memory Usage: 32kB
         Buffers: shared hit=1977
         ->  Hash Join  (cost=1395.30..4247.13 rows=12538 width=20) (actual time=25.260..80.897 rows=12518.00 loops=1)
               Hash Cond: (((measurements.record ->> 'scientist_id'::text))::bigint = s.scientist_id)
               Buffers: shared hit=1977
               ->  Bitmap Heap Scan on measurements  (cost=1099.30..3913.50 rows=12538 width=105) (actual time=2.671..25.013 rows=12518.00 loops=1)
                     Recheck Cond: ((((record ->> 'value_2'::text))::integer = 0) AND (((record ->> 'value_1'::text))::integer = 0))
                     Filter: (((record ->> 'value_3'::text))::integer = 0)
                     Rows Removed by Filter: 12593
                     Heap Blocks: exact=1819
                     Buffers: shared hit=1906
                     ->  BitmapAnd  (cost=1099.30..1099.30 rows=24880 width=0) (actual time=2.416..2.430 rows=0.00 loops=1)
                           Buffers: shared hit=87
                           ->  Bitmap Index Scan on measurements_value_2_idx  (cost=0.00..545.74 rows=49793 width=0) (actual time=1.210..1.213 rows=49896.00 loops=1)
                                 Index Cond: (((record ->> 'value_2'::text))::integer = 0)
                                 Index Searches: 1
                                 Buffers: shared hit=43
                           ->  Bitmap Index Scan on measurements_value_1_idx  (cost=0.00..547.04 rows=49967 width=0) (actual time=1.144..1.147 rows=50332.00 loops=1)
                                 Index Cond: (((record ->> 'value_1'::text))::integer = 0)
                                 Index Searches: 1
                                 Buffers: shared hit=44
               ->  Hash  (cost=171.00..171.00 rows=10000 width=28) (actual time=22.575..22.584 rows=10000.00 loops=1)
                     Buckets: 16384  Batches: 1  Memory Usage: 727kB
                     Buffers: shared hit=71
                     ->  Seq Scan on scientist_labs s  (cost=0.00..171.00 rows=10000 width=28) (actual time=0.025..11.113 rows=10000.00 loops=1)
                           Buffers: shared hit=71
 Planning Time: 0.278 ms
 Execution Time: 96.487 ms
(34 rows)

The estimated cardinality of "measurements" (rows=12538) is close to the actual count (rows=12518), so the query planner chooses a Hash Join and reads "scientist_labs" only once.

The query planner estimates the predicate’s overall cardinality by multiplying the selectivity of each field. This works here because the fields are uncorrelated. Three separate indexes offer flexibility when queries don’t filter on all three fields, but require a bitmap combination. If the fields always appear together in the filter, a compound index would be better:

CREATE INDEX measurements_value_123_idx ON measurements (
 ((record ->> 'value_1')::INT)
 ,
 ((record ->> 'value_2')::INT)
 ,
 ((record ->> 'value_3')::INT)
);
ANALYZE measurements;

The query planner prefers this index, and it still estimates cardinality correctly: rows=12564 for rows=12518.00:

                                                                                        QUERY PLAN                                                          
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Sort  (cost=2922.62..2922.63 rows=3 width=28) (actual time=71.266..71.279 rows=3.00 loops=1)
   Sort Key: s.lab_name
   Sort Method: quicksort  Memory: 25kB
   Buffers: shared hit=1890 read=12
   ->  HashAggregate  (cost=2922.57..2922.60 rows=3 width=28) (actual time=71.246..71.257 rows=3.00 loops=1)
         Group Key: s.lab_name
         Batches: 1  Memory Usage: 32kB
         Buffers: shared hit=1890 read=12
         ->  Hash Join  (cost=500.48..2859.75 rows=12564 width=20) (actual time=17.645..59.549 rows=12518.00 loops=1)
               Hash Cond: (((measurements.record ->> 'scientist_id'::text))::bigint = s.scientist_id)
               Buffers: shared hit=1890 read=12
               ->  Bitmap Heap Scan on measurements  (cost=204.48..2526.04 rows=12564 width=105) (actual time=0.669..16.853 rows=12518.00 loops=1)
                     Recheck Cond: ((((record ->> 'value_1'::text))::integer = 0) AND (((record ->> 'value_2'::text))::integer = 0) AND (((record ->> 'value_3'::text))::integer = 0))
                     Heap Blocks: exact=1819
                     Buffers: shared hit=1819 read=12
                     ->  Bitmap Index Scan on measurements_value_123_idx  (cost=0.00..201.34 rows=12564 width=0) (actual time=0.465..0.466 rows=12518.00 loops=1)
                           Index Cond: ((((record ->> 'value_1'::text))::integer = 0) AND (((record ->> 'value_2'::text))::integer = 0) AND (((record ->> 'value_3'::text))::integer = 0))
                           Index Searches: 1
                           Buffers: shared read=12
               ->  Hash  (cost=171.00..171.00 rows=10000 width=28) (actual time=16.956..16.959 rows=10000.00 loops=1)
                     Buckets: 16384  Batches: 1  Memory Usage: 727kB
                     Buffers: shared hit=71
                     ->  Seq Scan on scientist_labs s  (cost=0.00..171.00 rows=10000 width=28) (actual time=0.016..8.454 rows=10000.00 loops=1)
                           Buffers: shared hit=71
 Planning:
   Buffers: shared hit=26 read=1
 Planning Time: 0.521 ms
 Execution Time: 71.397 ms
(28 rows)

The same from the PostgreSQL extension visualization in Visual Studio Code:

Even when I disable index access, the cardinality estimate remains correct:

postgres=# set enable_bitmapscan to off;

SET

postgres=# EXPLAIN (ANALYZE, BUFFERS)
SELECT s.lab_name, COUNT( * )
FROM (
  SELECT (record ->> 'scientist_id')::BIGINT AS scientist_id
  FROM measurements
  WHERE (record ->> 'value_1')::INT = 0
    AND (record ->> 'value_2')::INT = 0
    AND (record ->> 'value_3')::INT = 0
) AS m
JOIN scientist_labs AS s
  ON s.scientist_id = m.scientist_id
GROUP BY s.lab_name
ORDER BY s.lab_name
;
                                                                                   QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Sort  (cost=6215.58..6215.59 rows=3 width=28) (actual time=98.676..98.691 rows=3.00 loops=1)
   Sort Key: s.lab_name
   Sort Method: quicksort  Memory: 25kB
   Buffers: shared hit=1890
   ->  HashAggregate  (cost=6215.53..6215.56 rows=3 width=28) (actual time=98.652..98.665 rows=3.00 loops=1)
         Group Key: s.lab_name
         Batches: 1  Memory Usage: 32kB
         Buffers: shared hit=1890
         ->  Hash Join  (cost=296.00..6152.71 rows=12564 width=20) (actual time=22.378..85.932 rows=12518.00 loops=1)
               Hash Cond: (((measurements.record ->> 'scientist_id'::text))::bigint = s.scientist_id)
               Buffers: shared hit
                                    
                                    
                                    
                                    
                                

November 19, 2026

From instant Aurora PostgreSQL databases to production-ready in your VPC

Amazon Aurora PostgreSQL express configuration now supports VPC networking. You can move an existing cluster into your VPC with a single modify operation, keeping its data and endpoint, from the console, the AWS CLI, or an AI agent. This post shows how to move and verify a cluster, and how to let an agent do it with IAM guardrails.

Building a no-code AI app on Amazon Aurora DSQL with agent skills, plugins, and MCP

With AI coding agents and Amazon Aurora DSQL, you can turn data from existing business systems into working applications. This post shows how Kiro and the Aurora DSQL power take enterprise data extracts to a running catalog and inventory application through four prompts, covering schema design, data loading, IAM authentication, and concurrency handling.

Performance impact of excessive logging in Amazon Aurora PostgreSQL

Excessive database and audit logging can quietly become a performance bottleneck in Amazon Aurora and Amazon RDS for PostgreSQL. Using a reproducible pgbench example, this post shows when logging overhead is negligible and when it cuts throughput by about three times, how to spot it with wait events and log file evidence, and how to reduce it.

Announcing VillageSQL Server 0.0.8

VillageSQL Server 0.0.8 is now available. This release is about adding functionality to use MySQL extensions from applications.

Java4Shell Vulnerability: Percona Security Update

  November 19, 2026 | Percona Security Team Percona is aware of the recently disclosed Java4Shell vulnerability (CVE-2026-114938), a critical security issue reportedly affecting OpenJDK and related Java distributions. The vulnerability involves memory corruption in Java’s Base64 decoder and may allow unauthenticated remote code execution (RCE) under certain conditions. Following the public disclosure, Percona’s Security … Continued

The post Java4Shell Vulnerability: Percona Security Update appeared first on Percona.

Why MySQL OR is slower than IN

Queries with OR conditions are commonly used to implement business logic. However, it might be slower than we expected.  Although the query below scans only 1 million rows, it runs for 6,7254 seconds. [crayon-6afe45fcc8337811746452/] The CPU profile indicates that 99% of CPU time was spent in [crayon-6afe45fcc8341482406539-i/] on MySQL 8.4. [crayon-6afe45fcc8344072208938/] How MySQL evaluates OR conditions MySQL … Continued

The post Why MySQL OR is slower than IN appeared first on Percona.

Building PlanetScale with Insights Agent

Three fixes Insights Agent made to our own Rails API: a reordered feature flag check, an index that made a query slower, and an index that took a query from seconds to milliseconds.