install

Function install 

Source
pub async fn install(ssh: &mut SshClient, config: &PostgresConfig) -> Result<()>
Expand description

Install PostgreSQL (idempotent)

This function will:

  • Check if PostgreSQL is already installed
  • If installed with the correct version, skip installation
  • If installed with a different version, return an error
  • If not installed, perform installation

ยงArguments

  • ssh - SSH connection to the server
  • config - PostgreSQL configuration