All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

PostgreSQL 18 Enables Instant Database Cloning with Reflinks

By

radimm

5mo ago· 9 min readen

Summary

The article explains how PostgreSQL 18 introduces new file copy options that enable instant database cloning using reflinks, solving the problem of slow database copying for testing, development, and learning environments. It contrasts traditional slow copy methods with the new approach that can create database clones in milliseconds regardless of database size, making it ideal for CI/CD pipelines, testing suites, and educational purposes.

Key quotes

· 3 pulled
When your database is a few megabytes, pg_dump and restore works fine. But what happens when you're dealing with hundreds of megabytes/gigabytes - or more? Suddenly 'just make a copy' becomes a burden.
PostgreSQL 18 introduces new file copy options that enable instant database cloning using reflinks, turning slow template copies into milliseconds.
The new approach can create database clones in milliseconds regardless of database size, making it ideal for CI/CD pipelines, testing suites, and educational purposes.
Snippet from the RSS feed
Learn how to clone PostgreSQL databases instantly using reflinks. Turn slow template copies into milliseconds with PostgreSQL 18's new file copy options.

You might also wanna read