PostgreSQL configuration management¶
- pglift.conf.make(**confitems: str | bool | float | int | timedelta | None) Configuration ¶
Return a
pgtoolkit.conf.Configuration
filled with given items.
- pglift.conf.read(configdir: Path, managed_only: bool = False) Configuration ¶
Return parsed PostgreSQL configuration for given configdir.
If
managed_only
isTrue
, only the managed configuration is returned excluding ‘postgresql.auto.conf’ or ‘recovery.conf’, otherwise the fully parsed configuration is returned.- Raises:
FileNotFoundError – if expected configuration file is missing.