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: ~pathlib.Path, managed_only: bool = False, *, fs: ~typing.Annotated[~pglift.system.fs.AbstractFS[~pathlib.PurePath] | ~pglift.system.fs.AbstractFS[~pathlib.Path], ~pglift.deps.Dependency(var=<ContextVar name='FileSystem' default=<pglift.system.fs.LocalFS object at 0x76365c6efb60> at 0x76365c60a520>)] = <object object>) Configuration

Return parsed PostgreSQL configuration for given configdir.

If managed_only is True, 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.