Reading up on PostgreSQL
43 deep · digging since dec 05, 25
- Cloudflare Workers and Hyperdrive with TanStack Start – Master.dev Blog
Using Cloudflare Workers with Hyperdrive and TanStack Start requires per-request database objects to avoid runtime errors and connection limits.
- Reading the internals of Postgres: Database cluster, databases, and tables
A developer explores PostgreSQL's logical and physical storage, showing how database clusters, OIDs, relfilenodes, and file layouts work under the hood.
- Postgres transactions are a distributed systems superpower
Co-locating workflow state and application data in Postgres enables atomic transactions that provide exactly-once execution without application-level idempotency logic.
- You can't unit test for taste
Taste in software cannot be unit-tested because it relies on tacit, contextual judgment that resists full externalization into rules or code.
- GitHub - kristiandupont/kanel: Generate Typescript types from Postgres
Kanel generates TypeScript types from a live PostgreSQL database, offering type safety without an ORM.
- Building durable workflows on Postgres
Commenters debate using Postgres for durable workflows, praising its flexibility but warning it often leads to building a poor copy of dedicated workflow engines like Temporal.
- AI inference just plays by different rules
AI inference workloads demand unprecedented concurrency and throughput, exposing cloud storage limits that require a decoupled, software-defined layer to avoid catastrophic failures.
- Full-Text Search with DuckDB
DuckDB's full-text search extension offers BM25 scoring, stemming, and stop-word removal but lacks result highlighting and phrase queries.
- Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite
Honker brings Postgres NOTIFY/LISTEN semantics to SQLite by polling the WAL file, enabling cross-process push-style event delivery with single-digit millisecond latency without a broker.
- GitHub - NikolayS/pgque: PgQue – Zero-bloat Postgres queue. One SQL file to install, pg_cron to tick.
PgQue is a zero-bloat Postgres queue engine implemented entirely in PL/pgSQL, using snapshot-based batching and table rotation to avoid the dead-tuple bloat that plagues SKIP LOCKED queues.
- Do you even need a database?
The article argues that for many small-scale, read-heavy, or single-user applications, flat files like JSON can outperform a full DBMS, but warns that scaling or adding write concurrency will force you to rebuild a database.
- I run multiple $10K MRR companies on a $20/month tech stack
Running multiple $10K MRR businesses on a $20/month stack with SQLite, a VPS, and minimal services is possible, but the approach is controversial among developers.
- Video Conferencing with Postgres — PlanetScale
A developer demonstrates live video calls over PostgreSQL using logical replication, achieving 15fps with a $5 database.
- LLMs work best when the user defines their acceptance criteria first
Defining clear, testable acceptance criteria upfront dramatically improves LLM-generated code quality, shifting their output from plausible to actually correct.
- Show HN: Omni – Open-source workplace search and chat, built on Postgres
Omni is a self-hosted AI agent platform that indexes workplace tools into a unified search and chat layer, using Postgres for hybrid search.
- Nobody gets promoted for simplicity
The HN discussion argues that engineers who build simple, maintainable systems are overlooked for promotion because their work lacks the visible complexity needed for compelling promotion narratives.
- What is a database transaction?
PlanetScale's blog post uses visualizations to explain database transactions, isolation levels, and ACID properties, sparking discussion on their intuitive presentation and underlying complexities.
- GitHub - mandarwagh9/MachineAuth: Secure OAuth 2.0 authentication for AI agents and machine-to-machine communication.
MachineAuth provides OAuth 2.0 authentication and permission infrastructure designed for AI agents to securely access APIs and services.
- Show HN: PgDog – Scale Postgres without changing the app
PgDog is a PostgreSQL proxy that provides connection pooling, load balancing, and sharding without modifying application code; written in Rust, it handles thousands of connections and supports cross-shard queries.
- GitHub - AnthonyRonning/sage
Sage is an experimental, self-hosted AI assistant with persistent memory, encrypted messaging via Signal or Nostr, and confidential LLM inference inside a TEE.
- Deep dive into Turso, the “SQLite rewrite in Rust”
Turso rewrites SQLite in Rust to enable a new database engine compatible with SQLite's file format while addressing C's memory safety issues and adding support for concurrent writes.
- It's 2026, Just Use Postgres
The Hacker News commenters debate whether Postgres can truly replace specialized databases like Redis or Elasticsearch, with pushback on performance claims for caching and search.
- The challenges of soft delete
HN commenters debate soft delete tradeoffs, noting schema drift, compliance conflicts, and performance issues, with many preferring archival tables or CDC over flags.
- Scaling PostgreSQL to power 800M ChatGPT users
OpenAI scaled a single PostgreSQL primary to serve 800 million ChatGPT users by adding 50 read replicas and offloading write-heavy workloads to Azure CosmosDB.
- Craft Agents - Open Source Agent Orchestration
Craft Agents is an open-source agent orchestration platform that connects to any API, MCP server, or local file via natural language, with a built-in browser, multimodal model support, and session-based workflows.
- Unconventional PostgreSQL Optimizations
The article details unconventional PostgreSQL optimization techniques like using constraint_exclusion, function-based indexes, virtual generated columns, and hash indexes for efficiency.
- LLMs and your career
Software developers who understand fundamentals like databases and operating systems will remain competitive as LLMs automate routine coding.
- Show HN: I used Claude Code to discover connections between 100 books
Claude Code was used to map thematic connections between 100 books, but commenters question whether the links are meaningful or just stylistic LLM patterns.
- Generate QR Codes with Pure SQL in PostgreSQL
Generating QR codes is possible using a single pure SQL statement in PostgreSQL without external libraries or extensions, done purely for fun.
- No management needed: anti-patterns in early-stage engineering teams
Early-stage startup founders should avoid formal engineering management and instead focus on hiring motivated people, staying flat, and using boring, lightweight practices until the team reaches 20+ engineers.
- Don't fall into the anti-AI hype
A Hacker News discussion challenges the 'anti-AI hype' narrative, with many commenters defending legitimate concerns about the impact of AI on programming jobs and code quality.
- Databases in 2025: A Year in Review
Andy Pavlo's 2025 database review covers PostgreSQL's continued dominance, emerging trends like vibe coding, and commentary on SQLite, DuckDB, and MCP security risks.
- Web development is fun again
In a Hacker News discussion, many commenters report that LLMs have made web development fun again by handling complexity and enabling quick hobby projects.
- GitHub - parcadei/Continuous-Claude-v2: Context management for Claude Code. Hooks maintain state via ledgers and handoffs. MCP execution without context pollution. Agent orchestration with isolated context windows.
Continuous Claude is a framework that extends Claude Code with hooks, agents, and a 5-layer code analysis system to maintain session context, reduce token usage, and enable multi-agent development workflows.
- Instant database clones with PostgreSQL 18
PostgreSQL 18 adds instant, zero-copy database cloning via CREATE DATABASE with FILE_COPY and WAL_LOG strategies, enabling template-based cloning for testing and CI.
- SQLite JSON at full index speed using generated columns
SQLite can index JSON fields at full B-tree speed by creating virtual generated columns with json_extract and indexing them.
- Technology | 2025 Stack Overflow Developer Survey
Python adoption accelerated sharply in 2025, Docker saw a record +17 point usage jump, and Rust remained the most admired language, according to the Stack Overflow Developer Survey.
- You gotta push if you wanna pull
Push queries incrementally process data changes to keep derived views fresh, while pull queries let humans inspect the materialized results on demand.
- Show HN: Marmot – Single-binary data catalog (no Kafka, no Elasticsearch)
Marmot is an open-source data catalog that ships as a single Go binary backed by Postgres, aiming to simplify data discovery without complex dependencies.
- 100k TPS over a billion rows: the unreasonable effectiveness of SQLite
SQLite achieves over 100k transactions per second on a billion-row dataset by avoiding network overhead, though durability and HA remain trade-offs.
- PGlite – Embeddable Postgres
PGlite is an embeddable Postgres database that runs in browsers and Node.js, enabling local-first and testing use cases.
Takes
All types of databases, Redis, Postgres, Clickhouse, Mysql etc. now display important stats and metrics aswell as most run queries in the Maple service map
@makisuo
People keep saying AI coding agents can only build basic, cookie-cutter apps. I decided to prove them wrong. For my first major public demo, I spent some time pushing @Replit 's AI agent to its absolute limit. The result? I rebuilt macOS entirely on the web. No templates. No imported UI libraries. 100% vibecoded using natural language. As the AI Chief of Staff at Replit, I spend my days building enterprise-grade platforms for our internal teams, but I wanted to see how far a solo developer could take a passion project just by talking to an AI. What’s inside: 💻 A functional VS Code replica with an integrated terminal and multi-agent AI copilot. 🔌 Custom MCP servers hooked up to fetch, PostgreSQL, Stripe, and GitHub. 🤖 A rebuilt "Siri" that actually controls the OS -changing wallpapers and opening apps via voice or text. 🕹️ Parallels Desktop running Windows XP, Ubuntu, and games like Mario Kart. 📱 AND... I asked Agent 3 to turn it into an iOS mobile app in one shot. It actually worked. The ceiling for software creation has been completely blown open with Agent 3. And 4 those who know... greater things are coming soon :) We are way past basic web apps. What are you building? 👇
@agi2asi