惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
www.infosecurity-magazine.com
www.infosecurity-magazine.com
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
V
Visual Studio Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
人人都是产品经理
人人都是产品经理
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
The Cloudflare Blog
N
News and Events Feed by Topic
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
V
V2EX
AWS News Blog
AWS News Blog
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Spread Privacy
Spread Privacy
J
Java Code Geeks
博客园 - 聂微东
T
Tor Project blog
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Webroot Blog
Webroot Blog
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Heimdal Security Blog
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
I
InfoQ
Security Latest
Security Latest
Martin Fowler
Martin Fowler
Hacker News: Ask HN
Hacker News: Ask HN
P
Privacy International News Feed
C
CERT Recently Published Vulnerability Notes
Latest news
Latest news
雷峰网
雷峰网
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cisco Blogs
H
Help Net Security
L
LINUX DO - 最新话题
L
LINUX DO - 热门话题

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - xataio/deltax: Time series postgres extension
tee-es-gee · 2026-05-20 · via Hacker News: Show HN

License - Apache 2.0  X (formerly Twitter) Follow  Bluesky Follow  Youtube Subscribe 

DeltaX (δx) - Fast time-series extension for PostgreSQL

DeltaX (δx) is a PostgreSQL extension offering compression and columnar storage for time-series data. It can be used as a pure open-source (Apache 2.0) alternative to TimescaleDB or as a PostgreSQL-native alternative to dedicated analytics stores like ClickHouse, when you'd like your data to stay in Postgres.

δx stores the compressed columnar data in regular Postgres tables. It does not use its own storage format on disk. The advantage of this approach is that features like physical/logical replication, crash recovery, backups, and pg_dump work as for any other Postgres table.

Contents

Benchmarks

These results are as of May 19th, 2026.

ClickBench

On the ClickBench benchmark, which runs 43 analytical queries against a web analytics dataset of 100M rows × 105 columns, δx currently ranks lower than specialized analytical stores like ClickHouse and DuckDB, but it is the highest-ranking of all the systems that are storing the data in PostgreSQL.

The following screenshot contains a selection of Postgres extensions/projects + ClickHouse for reference. It displays the "combined" metric, which is a weighted average combining hot times, cold time, load time, and storage size.

ClickBench combined: pg_deltax ranks in-between ClickHouse and TimescaleDB

Compression / storage size

Looking at the compression ratio / storage size, δx offers a compression ratio of about 7× on this particular dataset. Compression ratios vary considerably by data characteristics.

ClickBench storage size: pg_deltax compression ratio is ~7x

Load time

ClickBench load times result

Note: The reason δx can load the data faster than Postgres is that it has support for backfilling data directly from Parquet files. On a more standard setup where the data is loaded into normal Postgres tables and then compressed, the load time would be similar to the PostgreSQL result plus the compression time.

JSONBench

JSONBench is a benchmark similar to ClickBench but for measuring performance on semi-structured data. The dataset contains Bluesky firehose data exported as ndjson.

δx has support for extracting particular fields from JSONB columns and compressing them with the same columnar algorithms as the native columns. This enables the following results on JSONBench.

JSONBench hot run results

How it works

Let's start with an example time-series table partitioned by a timestamp column. The data itself can be metrics, logs, events, etc. Anything that contains a timestamp. PostgreSQL has built-in partitioning, so it's very common to partition time-series data in fixed-interval partitions (e.g. daily, weekly, or monthly). In our example, let's assume monthly. The partitioned table might look something like this:

PostgreSQL partitioned table

Under typical time-series workloads, only the last partition (the current month) receives writes. The rest typically only receive reads. Based on this observation, the idea is that we can compress older partitions so that they take less space.

Compressed partitions

A naive way to do this is to compress all the data in a given partition with a single algorithm (say, LZ4). However, it turns out that compressing column by column has two important advantages:

  • we can use type-specific compression algorithms which can be a lot more efficient in compression.
  • if all the values of a given column are stored together one by one, filtering by that column becomes very efficient.

Switching to columnar-oriented storage during compression

In other words, during the compression process, we also switch from row-oriented to column-oriented storage. This is done on a per-segment basis, meaning that each partition is split into segments of roughly equal size (by default, 30K rows) and compressed segment by segment.

δx is currently using the following algorithms to compress the data of columns of given types:

  • Integers (int2, int4, int8): tries three encodings, Constant (single repeated value), Frame-of-Reference + bit-packing (small range around a base), and Delta-Varint (variable-length encoded deltas between consecutive values), and picks whichever produces the smallest blob per segment.
  • Floats (float4, float8): Gorilla XOR encoding (the scheme from Facebook's Gorilla paper), which exploits the fact that consecutive floats in time-series data tend to share most of their binary representation.
  • Timestamps and dates (timestamp, timestamptz, date): Gorilla delta-of-delta encoding, very compact when timestamps are evenly or near-evenly spaced.
  • Booleans (bool): bitmap encoding, 1 bit per value.
  • Text with low cardinality (text, varchar, bpchar): dictionary encoding when cardinality is < 50% of rows and < 65,536 distinct values, with the dictionary indices optionally further LZ4-compressed.
  • Text with high cardinality (text, varchar, bpchar): block-LZ4 over the raw strings.
  • JSONB (jsonb): the raw JSONB bytes go through the same pipeline as text (dictionary or block-LZ4). In addition, when compression is enabled you can pass a json_extract spec to pull selected fields out of a JSONB column into synthetic columns of a chosen type (text, bigint, timestamptz, etc.) at compression time. These synthetic columns are then compressed with the matching type-specific codec above, just like native columns, and can be filtered, ordered, and aggregated on directly.

Across all of these, NULLs are extracted into a separate null bitmap before compression, so the codec only sees non-null values.

During compression, δx also collects metadata about the values in each segment:

  • Time bounds and row count per segment.
  • Per-column min, max, sum, non-null count, and non-zero count.
  • Per-column distinct-value count.
  • Bloom filters for numeric, date, and timestamp columns.
  • Value-presence bitmaps for low-cardinality (≤32 distinct values per partition) text columns.
  • Per-row text-length sidecars: an LZ4-compressed array of character counts for every text column.

This metadata can be used during planning and execution to speed up queries, either by skipping segments that can't contribute to the result, or by answering queries directly from the metadata without touching the compressed blobs at all.

The compressed data and the metadata are stored in companion tables for each partition, with a layout carefully chosen to minimize IO for the usual access patterns. The companion tables are normal Postgres tables, meaning that they benefit from the Postgres infrastructure for replication and crash recovery. They are used transparently by the Postgres planner and executor hooks to speed up queries.

DeltaX compressed columnar partitions

An important design trade-off of δx is that compressed partitions become read-only. Writes to them are rejected and the only way to update individual rows is to decompress and re-compress the whole partition.

Features

Current features include:

Storage & compression

  • Auto-partitioning: turn any table with a timestamp column into a time-range partitioned table; out-of-range inserts land in a default partition.
  • Per-column codecs: type-specific compression (Gorilla XOR for floats, Gorilla delta-of-delta for timestamps, Constant / FOR + bit-packing / Delta-Varint for integers, dictionary + LZ4 for text, bitmap for booleans), best codec picked per segment.
  • Rich segment metadata: per-column min / max / sum / non-null / non-zero / distinct counts, bloom filters for numeric / date / timestamp columns, value-presence bitmaps for low-cardinality text, and per-row text-length sidecars.

Query path

  • Transparent decompression: queries against compressed partitions work unchanged; the planner injects custom scan nodes that decompress on the fly.
  • Segment pruning: skip whole segments using time bounds, segment-by equality, min/max, bloom filters, value-presence bitmaps, or dictionary entries — before reading the compressed blob.
  • Vectorized batch filters: =, <>, <, <=, >, >=, LIKE, IN evaluated in tight Rust loops over decoded batches, bypassing PostgreSQL's per-row ExecQual.
  • Aggregate pushdown: COUNT(*), MIN / MAX, SUM, AVG, COUNT(col), and GROUP BY answered either from segment metadata or by a vectorized aggregator inside the scan node.
  • Top-N fast path: ORDER BY ts LIMIT N uses a two-pass scan that decodes only the sort column for most segments, then the remaining columns for the ~N winning rows.
  • Parallel aggregation: parallel-aware Partial → Gather → FinalAgg for SUM / AVG / COUNT with numeric WHERE.
  • Shared-memory blob cache: cross-backend DSA-backed cache of detoasted compressed blobs, so hot-cache scans don't pay TOAST cost.
  • Text-length sidecar fast path: length(col) / col = '' / col <> '' queries read a few-KB sidecar instead of detoasting the multi-MB text blob.

JSON field extraction

  • Selective JSONB field extraction: pull selected JSON paths out of a JSONB column into synthetic typed columns at compression time and compress them with the matching native codec.
  • Automatic query rewrite: queries written against the original JSONB column (data->>'field'-style chains) are transparently rewritten to read from the synthetic columns.

Ingest & operations

  • Direct backfill: COPY ... WITH (FORMAT deltax_compress) writes straight to compressed companion tables from TSV / CSV / Parquet, bypassing the heap and its WAL / index / MVCC overhead.
  • Background worker: drains the default partition into proper ones, pre-creates future partitions, compresses partitions past compress_after, drops partitions past drop_after.
  • PostgreSQL 17 and 18 supported.

Limitations

  • Compressed partitions are read-only. Writes are rejected; whole-partition operations (DROP, TRUNCATE) still work. If you need to update individual rows in an old partition, you must decompress, modify, and re-compress.
  • No schema changes affecting column layout (ADD / DROP / ALTER COLUMN) on a deltatable while it has compressed partitions — you need to decompress them first, alter, and re-compress.
  • No continuous (auto-refreshed) materialized aggregates yet. It is on our roadmap.
  • No offloading of old partitions to S3. Data tiering is on our roadmap.
  • Postgres 17 and 18 only.

Installation and quick start

Installation from deb file

Download the .deb matching your PG major version and architecture from the latest release, then:

apt-get install -y ./pg-deltax-pg17_<version>_amd64.deb

δx registers a background worker from _PG_init, so it must be in shared_preload_libraries:

echo "shared_preload_libraries = 'pg_deltax'" >> $PGDATA/postgresql.conf
# restart PostgreSQL, then:
psql -c "CREATE EXTENSION pg_deltax;"

Installation from source

Requires a Rust toolchain, the PostgreSQL server dev headers (postgresql-server-dev-17 or -18 on Debian / Ubuntu), and cargo-pgrx matching the pgrx version in Cargo.toml:

cargo install cargo-pgrx --version 0.17.0 --locked
cargo pgrx init --pg17=$(which pg_config)

Then build and install the extension into the PostgreSQL instance pointed at by pg_config:

cargo pgrx install --release --pg-config $(which pg_config) \
    --features pg17 --no-default-features

Replace pg17 with pg18 to target PostgreSQL 18. Then add pg_deltax to shared_preload_libraries, restart PostgreSQL, and CREATE EXTENSION pg_deltax; as above.

Quickstart

CREATE TABLE metrics (ts TIMESTAMPTZ NOT NULL, device TEXT, value FLOAT8);
SELECT deltax_create_table('metrics', 'ts', '1 day');

INSERT INTO metrics VALUES (now(), 'sensor-1', 42.0);

SELECT time_bucket('1 hour', ts), avg(value) FROM metrics GROUP BY 1;
SELECT first(value, ts), last(value, ts) FROM metrics;
SELECT * FROM deltax_partition_info('metrics');

-- Compression
SELECT deltax_enable_compression('metrics', order_by => ARRAY['device', 'ts']);
SELECT deltax_compress_partition('metrics_p20250401');
SELECT * FROM deltax_compression_stats('metrics');

-- Size reporting (accounts for compressed storage)
SELECT pg_size_pretty(deltax_table_size('metrics'));

Correctness testing

The main correctness invariant in the test suite is: δx must always respond with the same results as plain Postgres returns from the uncompressed version of the table. Whenever the response is different, it is a bug. There are cases where this condition is relaxed: for example, on a LIMIT 10 query, if the 10th row has ties, any of them is accepted. We have the following comparison policies:

  • ordered_exact — rows and row order must match exactly.
  • unordered_exact — row multiset must match, order is ignored.
  • limit_ties — relaxed policy for non-unique ORDER BY ... LIMIT cases; boundary rows can differ as long as they're tied with rows the other side returned.
  • float_tolerant — ordered comparison with a small numeric tolerance.

We have four layers of automated tests:

  • Rust unit tests (make test)
  • Integration tests (make integration-test): end-to-end tests against a running PostgreSQL with the extension loaded, run against both PG 17 and 18. They cover partitioning, compression / decompression round-trips, the background worker, parallel scans, parquet loading, JSONB field extraction, the blob cache, value bitmaps, meta-only aggregation, and more.
  • Plain-PG-vs-δx correctness harness (make correctness): the implementation of the invariant above. Loads identical logical data into a regular PostgreSQL table and a δx table, runs the same query against both, and compares the results. The suite covers aggregates, ordering, predicates, codec round-trips via direct backfill, planner-mode coverage, partition / segment edges, joins with uncompressed tables.
  • Benchmark correctness (e.g. make -C clickbench verify). The benchmark harnesses also act as cross-implementation parity checks, so a query that benchmarks fast but returns wrong results fails the run.

Reference

How can I help

At the moment, the best way to contribute to this project is to:

  • Spread the word: star the repo, post about it on social media, tell your friends.
  • If you have a use-case in your company where δx would be beneficial, please get in touch and we'll evaluate if δx is ready for it, or what it would take to make it ready.
  • Ask your Postgres cloud provider to add support for δx. We'd like to explicitly encourage other Postgres cloud providers to adopt it.

See CONTRIBUTING.md for the developer guide. We recommend getting in touch before contributing new features.

License

Licensed under the Apache License, Version 2.0. See LICENSE for the full text.

Made with 💜 by Xata 🦋