barman.postgres_plumbing module#

PostgreSQL Plumbing module

This module contain low-level PostgreSQL related information, such as the on-disk structure and the name of the core functions in different PostgreSQL versions.

barman.postgres_plumbing.function_name_map(server_version)View on GitHub#

Return a map with function and directory names according to the current PostgreSQL version.

Each entry has the current name as key and the name for the specific version as value.

Parameters:

server_version (number|None) – Version of PostgreSQL as returned by psycopg2 (i.e. 90301 represent PostgreSQL 9.3.1). If the version is None, default to the latest PostgreSQL version

Return type:

dict[str]