# Waiting for PostgreSQL 19 - Add CONCURRENTLY option to REPACK

DevFeed: [Waiting for PostgreSQL 19 - Add CONCURRENTLY option to REPACK](<https://devfeed.tech/articles/waiting-for-postgresql-19-add-concurrently-option-to-repack-33689.md>)

Original publisher: [Read original article](<https://www.depesz.com/2026/04/21/waiting-for-postgresql-19-add-concurrently-option-to-repack/>)

Author: depesz

Published: 2026-04-21T10:40:14Z

Content type: opinion

Language: en

Sources: [select \* from depesz;](<https://devfeed.tech/sources/select-from-depesz.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [bloat](<https://devfeed.tech/tags/bloat.md>), [concurrently](<https://devfeed.tech/tags/concurrently.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [pg19](<https://devfeed.tech/tags/pg19.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [repack](<https://devfeed.tech/tags/repack.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [vacuum](<https://devfeed.tech/tags/vacuum.md>), [waiting](<https://devfeed.tech/tags/waiting.md>)

## AI overview

The article tests PostgreSQL 19's proposed CONCURRENTLY option for REPACK on a table with 200 million rows. The test found that the table shrank as expected, while inserts experienced a visible but limited slowdown during repacking.

## Source excerpt

On 6th of April 2026, Álvaro Herrera committed patch: Add CONCURRENTLY option to REPACK When this flag is specified, REPACK no longer acquires access-exclusive lock while the new copy of the table is being created; instead, it creates the initial copy under share-update-exclusive lock only (same as vacuum, etc), and it follows an MVCC ... Continue reading "Waiting for PostgreSQL 19 - Add CONCURRENTLY option to REPACK"