mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 14:02:55 +00:00
Compiling a Regex is very expensive, so let's not do it on every invocation. This was consuming a big fraction of the time in creating a new base backup at "zenith pg create". This commits brings down the time to run "zenith pg create" on a freshly created repository from about 2 seconds to 1 second. It's not worth spending much effort on optimizing things at this stage in general, but might as well pick low-hanging fruit like this.
This module contains utility functions for interacting with PostgreSQL file formats.