Relation extension scalability
Bulk relation extension via ExtendBufferedRel, smgrzeroextend and fallocate, extending by multiple blocks to cut extension lock contention and speed up COPY.
Versions
- PostgreSQL 19 · worked-on · improved · minor
Threads
- [PATCH] Refactor remaining zero-fill relation extensions to use smgrzeroextend()
- Fix FSM range endpoint after relation extension
- [PATCH] Fix EINTR retry condition in pg_flush_data sync_file_range path.
- pgsql: Add file_extend_method=posix_fallocate,write_zeros.
- [PING] fallocate() causes btrfs to never compress postgresql files
- FileFallocate misbehaving on XFS
- BUG #19348: Disk space error when running COPY after upgrading to PostgreSQL 17.7
- fallocate() causes btrfs to never compress postgresql files
- Lock tag of relation extend lock
- BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition
- BUG #18130: \copy fails with "could not read block" or "page should be empty but not" errors due to triggers
- Performance degradation on concurrent COPY into a single relation in PG16.
- pg16: invalid page/page verification failed
- Standardize type of variable when extending Buffers
- BufferUsage counters' values have changed
- Rename ExtendedBufferWhat in 16?
- [BUG] Crash on pgbench initialization.
- pgsql: Add smgrzeroextend(), FileZero(), FileFallocate()
- Fix a typo in md.c
- refactoring relation extension and BufferAlloc(), faster COPY
- Assertion being hit during WAL replay
- Bufmgr possible overflow
- hio.c does visibilitymap_pin()/IO while holding buffer lock