<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-decade-old-postgres-cve-surfaces-clickhouse-widens-its-cost-gap-p6vios2xx" -->

---
title: A decade-old Postgres CVE surfaces, ClickHouse widens...
description: A critical Postgres authorization bypass nicknamed PostGREShell has been lurking since 2014 and lets any Replication-role account take over the whole server....
canonical: https://daily.dev/posts/a-decade-old-postgres-cve-surfaces-clickhouse-widens-its-cost-gap-p6vios2xx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A decade-old Postgres CVE surfaces, ClickHouse widens its cost gap | daily.dev
og:description: A critical Postgres authorization bypass nicknamed PostGREShell has been lurking since 2014 and lets any Replication-role account take over the whole server....
og:url: https://daily.dev/posts/a-decade-old-postgres-cve-surfaces-clickhouse-widens-its-cost-gap-p6vios2xx
og:image: https://api.daily.dev/og/posts/p6VIOs2XX.png
og:image:alt: A decade-old Postgres CVE surfaces, ClickHouse widens its cost gap
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A decade-old Postgres CVE surfaces, ClickHouse widens its cost gap

**[Databases Digest](https://daily.dev/sources/databases_digest)** · 4 min read · 0 upvotes · 0 comments

## Summary

A critical Postgres authorization bypass nicknamed PostGREShell has been lurking since 2014 and lets any Replication-role account take over the whole server. ClickHouse Cloud's new CostBench numbers against Snowflake show a 412x performance-per-dollar gap once ingestion lag gets counted. Neon and Databricks shipped a Lakebase change that doubles throughput by giving Postgres huge pages instead of a 1GB shared-buffer cap. And a developer built a tool that actually verifies whether LLM-suggested indexes help, finding 40% don't survive scrutiny.

## Content

**TLDR:** A critical Postgres authorization bypass nicknamed PostGREShell has been lurking since 2014 and lets any Replication-role account take over the whole server. ClickHouse Cloud's new CostBench numbers against Snowflake show a 412x performance-per-dollar gap once ingestion lag gets counted. Neon and Databricks shipped a Lakebase change that doubles throughput by giving Postgres huge pages instead of a 1GB shared-buffer cap. And a developer built a tool that actually verifies whether LLM-suggested indexes help, finding 40% don't survive scrutiny.

---

## PostGREShell: a 12-year-old Postgres privilege escalation bug gets patched

CVE-2026-6471 lets anyone holding just the Replication role achieve full superuser takeover, by passing an unsanitized plugin path through the logical replication protocol into dlopen(). The bug has existed since version 9.4 in 2014. Patched versions are 18.6, 17.11, 16.15, 15.19, and 14.24 - if you have any accounts with the Replication attribute, patch now and audit who holds it. [Read more](https://daily.dev/posts/eWyWwcOxd)

## ClickHouse Cloud beats Snowflake by 412x on cost-per-performance, ingestion lag included

CostBench streamed 113.2 billion stock quotes into both systems at 1M rows/sec. ClickHouse keeps raw and pre-aggregated data in sync with zero lag, while Snowflake's split ingestion/materialized-view-refresh architecture adds an average 1.4-minute lag that forces query-time reconciliation. Aggregate queries came out 669x faster on ClickHouse, and even Snowflake's dedicated-refresh-warehouse workaround stayed roughly 13x slower and $1,785 more expensive for the same ingest. [Read more](https://daily.dev/posts/eic9EVOhU)

## Neon and Databricks give Lakebase Postgres huge pages, get 2x throughput

Shared buffers on large Lakebase computes now use up to 75% of DRAM instead of capping at 1GB, and switched to 2MB huge pages from 4KB, cutting TLB misses that plague Postgres's per-process backend model at scale. Production rollouts show up to 2x throughput, 5x fewer storage-layer reads, and 40% lower tail read latency. It's live now on fixed-size computes with CU >= 18 on Neon and CU >= 80 on Databricks. [Read more](https://daily.dev/posts/8p4UmfvX4)

## Someone built a tool that checks whether AI-suggested Postgres indexes actually help

pg-index-referee creates each LLM-suggested index inside a transaction, re-measures with EXPLAIN (ANALYZE, BUFFERS), confirms the planner picked it, then rolls back. Across nine models, eight queries, and 151 proposed indexes, about 40% didn't survive verification, and keep rates clustered at 58-67% regardless of price despite an 18x cost range between models. Two queries that scan nearly the whole table were never helped by any of 41 proposed indexes - sometimes the honest answer is no index will fix it. [Read more](https://daily.dev/posts/Arm6PzbfV)

---

## Also notable

- **Postgres 19 drops graph queries too:** A planned native graph query feature has also been cut from the PostgreSQL 19 release, following last digest's SQL/PGQ and partition MERGE/SPLIT reverts. [Read more](https://daily.dev/posts/b1lr97Zka)
- **NOLOCK reads can silently overcount, not just undercount:** Testing on SQL Server 2025 CU7 with 100,000 rows under concurrent updates produced 8 wrong counts out of 380 runs, all overcounts caused by page splits moving rows into unread pages, with index fragmentation ballooning the page count from 9,092 to 81,418. [Read more](https://daily.dev/posts/KKoMrGPpz)
- **Postgres 18 adds a dedicated GUC for replication origin tracking:** max_active_replication_origins replaces the old workaround of overloading max_replication_slots, defaults to 10, requires a postmaster restart to change, and fails quietly by sending apply workers into a retry loop if no slot is free. [Read more](https://daily.dev/posts/hqZxc2IXr)
- **Spanner's mutation limit now applies per DML statement, not per transaction:** Google Cloud Spanner's 80,000-mutation cap now applies to each individual DML statement rather than the whole transaction, letting developers group more operations together without hitting the old limit, though larger transactions still raise lock-contention and abort risk. [Read more](https://daily.dev/posts/769lIJc0p)
- **A new ScyllaDB Go driver claims 4x GoCQL, 2x the Rust driver:** Built by University of Warsaw students with ScyllaDB engineers, the driver hits roughly 1.3 million inserts/second at 2,000 concurrent workers in EC2 benchmarks, using a shared-nothing design and 1ms request-coalescing window. [Read more](https://daily.dev/posts/HORiQvYPn)

## Similar posts on daily.dev

- [PostGREShell: A Decadelong PostgreSQL Vulnerability Revealed](https://daily.dev/posts/postgreshell-a-decadelong-postgresql-vulnerability-revealed-ewywwcoxd) · Medium · 2 upvotes · 0 comments
- [Decade-old PostgreSQL flaw turns backup account into a backdoor](https://daily.dev/posts/decade-old-postgresql-flaw-turns-backup-account-into-a-backdoor-dfmglzzwn) · CSO Online · 4 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#postgresql](https://daily.dev/tags/postgresql), [#clickhouse](https://daily.dev/tags/clickhouse)

[View this post on daily.dev](https://daily.dev/posts/a-decade-old-postgres-cve-surfaces-clickhouse-widens-its-cost-gap-p6vios2xx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/a-decade-old-postgres-cve-surfaces-clickhouse-widens-its-cost-gap-p6vios2xx","headline":"A decade-old Postgres CVE surfaces, ClickHouse widens its cost gap","text":"A critical Postgres authorization bypass nicknamed PostGREShell has been lurking since 2014 and lets any Replication-role account take over the whole server. ClickHouse Cloud's new CostBench numbers against Snowflake show a 412x performance-per-dollar gap once ingestion lag gets counted. Neon and Databricks shipped a Lakebase change that doubles throughput by giving Postgres huge pages instead of a 1GB shared-buffer cap. And a developer built a tool that actually verifies whether LLM-suggested indexes help, finding 40% don't survive scrutiny.","url":"https://daily.dev/posts/a-decade-old-postgres-cve-surfaces-clickhouse-widens-its-cost-gap-p6vios2xx","datePublished":"2026-09-10T04:17:38.384Z","dateModified":"2026-09-10T04:18:02.322Z","author":{"@type":"Organization","name":"Databases Digest","logo":"https://media.daily.dev/image/upload/s--ir1hdV8b--/f_auto,q_auto/v1773839400/logos/databases_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/databases_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/databases_digest","name":"Databases Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Databases Digest","item":"https://daily.dev/sources/databases_digest"},{"@type":"ListItem","position":3,"name":"A decade-old Postgres CVE surfaces, ClickHouse widens its cost gap"}]}
```

