PostgreSQL configuration management

pglift.conf.make(**confitems)

Return a pgtoolkit.conf.Configuration filled with given items.

Parameters:

confitems (str | bool | float | int | timedelta | None)

Return type:

Configuration

pglift.conf.read(configdir, managed_only=False, *, fs=<object object>)

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.

Parameters:
  • configdir (Path)

  • managed_only (bool)

  • fs (Annotated[AbstractFS[PurePath] | AbstractFS[Path], Dependency(var=<ContextVar name='FileSystem' default=<pglift.system.fs.LocalFS object at 0x7cbbdf0e1e80> at 0x7cbbdf146d90>)])

Return type:

Configuration