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

推荐订阅源

G
Google Developers Blog
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 司徒正美
D
Docker
B
Blog
V
Visual Studio Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
S
SegmentFault 最新的问题
小众软件
小众软件
J
Java Code Geeks
美团技术团队
腾讯CDC
MyScale Blog
MyScale Blog
爱范儿
爱范儿
H
Help Net Security
宝玉的分享
宝玉的分享
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
PostgreSQL HA Risks, Replication Internals, & Rapid Branc...
soy · 2026-06-16 · via DEV Community

soy

PostgreSQL HA Risks, Replication Internals, & Rapid Branching

Today's Highlights

Today's highlights include critical insights into Patroni's replication slot management, an architectural deep dive into PostgreSQL's synchronous commit behavior, and a look at achieving sub-second database branching for enhanced developer workflows.

When Patroni Silently Deletes Your Replication Slots (Planet PostgreSQL)

Source: https://postgr.es/p/9lM

This article uncovers a critical operational pitfall when using Patroni, a popular high-availability solution for PostgreSQL, with logical replication. It details how Patroni, under specific failure scenarios or configuration changes, can silently remove replication slots without warning. Replication slots are vital for ensuring that standbys or logical replication consumers do not miss any changes, making their deletion a potentially severe data integrity issue. The author explains the underlying reasons for this behavior, often related to how Patroni manages pg_basebackup or restores, and how it might not re-create logical replication slots automatically.

The post provides concrete scenarios where this can occur, such as when a new primary is elected and old slots aren't re-established, or during certain recovery operations. It emphasizes the importance of diligent monitoring of replication slot status and proposes strategies to mitigate the risk of silent deletion, including careful Patroni configuration and robust alerting mechanisms. This insight is crucial for database administrators and developers relying on Patroni for resilient PostgreSQL deployments, highlighting a subtle but dangerous interaction between these two powerful components.

Comment: This is a must-read for anyone running Patroni with PostgreSQL, especially if using logical replication. Understanding this specific behavior of Patroni deleting replication slots silently is essential to prevent unexpected data loss or integrity issues in production.

Why Postgres Doesn't Have remote_receive - And What Happened When I Tried It (Planet PostgreSQL)

Source: https://postgr.es/p/9lS

This article delves into a fundamental design choice within PostgreSQL regarding its replication architecture, specifically the absence of a remote_receive concept akin to some other distributed databases. The author explores the trade-offs between durability and performance, centering on PostgreSQL’s synchronous_commit parameter. While synchronous_commit guarantees transaction durability across primary and standby servers before acknowledging a commit, the article questions why a more granular control over where the WAL (Write-Ahead Log) is "received" might not be directly exposed. The author experimentally attempts to mimic a remote_receive-like behavior to understand its implications.

The exploration highlights PostgreSQL's robust, yet opinionated, approach to ensuring data consistency and availability. It discusses how achieving certain distributed system properties often requires building layers on top of PostgreSQL's core replication, using tools like Patroni or custom scripting, rather than having a built-in parameter for fine-grained WAL receipt control. The insights are valuable for understanding the architectural underpinnings of PostgreSQL replication and for making informed decisions about configuration in high-durability, distributed environments.

Comment: This deep dive into synchronous_commit and the architectural reasons behind PostgreSQL's replication design is fascinating. It's a great piece for understanding how PostgreSQL balances durability and performance, especially in distributed setups.

A thousand Postgres branches for $1 (Planet PostgreSQL)

Source: https://postgr.es/p/9lI

This article discusses a significant improvement in the efficiency and cost-effectiveness of database branching for PostgreSQL environments. Traditionally, creating a database branch—a full, isolated copy of a database for development, testing, or CI/CD pipelines—can be a time-consuming and resource-intensive operation, often taking 20 seconds or more. The author details how they managed to reduce this branching time dramatically to approximately one second, while also highlighting the potential for significant cost savings (implied by "for $1"). This speed improvement unlocks new possibilities for developer workflows, enabling more frequent and rapid experimentation, isolated testing, and faster CI/CD cycles.

The article likely touches upon specific techniques or underlying technologies that enable such rapid branching, possibly involving copy-on-write filesystems, database virtualization, or other snapshotting mechanisms. It explains the use-cases that these speed improvements enable, such as giving every developer their own isolated database instance, spinning up ephemeral databases for every pull request, or performing complex data migrations in safe, throwaway environments. This advancement is particularly relevant for modern software development practices that prioritize agility and automation.

Comment: Faster database branching is a game-changer for dev/test workflows and CI/CD, boosting productivity and enabling true isolated environments. This article shows what's possible when optimizing database infrastructure.