PostgreSQL resources from Hacker News

263 finds to explore

Article

Internals

Load terabytes of data in minutes into Lakebase Postgres

Databricks describes its LTAP architecture, in which Spark builds valid Postgres heap and index pages in parallel and writes them to shared storage while the primary records only a manifest WAL record. It explains sandboxed binary-upgrade instances, frozen tuples, checksum validation and a helper-table index build, and reports vendor-measured load times.

databricks.comGo to original
Article

Performance

Row-level security performance in PostgreSQL, measured

The article measures how RLS policy formulation changes query plans and latency on PostgreSQL 17.10, comparing setting-based predicates, helper-function volatility, membership subqueries and non-leakproof expressions. It reports that volatile PL/pgSQL helpers, IN (SELECT ...) membership checks and non-leakproof functions such as lower() can each prevent index use.

Article

Ecosystem

Are we reverting patches because of bugs found by AI? - Tomas Vondra

Tomas Vondra examines the 12 features reverted from the PostgreSQL 19 development cycle and classifies each by whether the underlying issues were actually found by AI tooling. He compares revert counts and timing against releases since PostgreSQL 14 and argues that increased AI-driven CVE handling, not AI bug discovery in patches, better explains the stabilization delay.

Article

Tools & extensions

Memory safety for Postgres extensions in C/C++

ClickHouse engineers explain why Postgres's MemoryContext and palloc model plus PG_TRY/PG_CATCH longjmp error handling interact badly with C++ exceptions and object destructors in extensions. They describe the different isolation strategies used in pg_clickhouse, pg_re2, pg_chdb and pg_stat_ch, and state that routing via ereport(FATAL) is a mitigation rather than a crash-isolation guarantee.

clickhouse.comGo to original

A model-assisted selection, with sources you can inspect. Project status may have changed. Read the caveats ↗