how to upgrade PostgreSQL client in azure cloud shell

S, P1686MS (623-WIPRO LIMITED) 0 Reputation points
2025-01-22T09:55:35.3366667+00:00

Hi,

I have run the below command and getting below error.

pg_dump -Fc -v --host=XXXXXXX --username=XXXXX --dbname=XXX -f test_dev_flexi_psqllogtim.dump

Password:

pg_dump: error: server version: 15.7; pg_dump version: 14.13

pg_dump: error: aborting because of server version mismatch

Azure Database for PostgreSQL
{count} votes

3 answers

Sort by: Most helpful
  1. Khalid Badawi 0 Reputation points
    2025-01-22T11:36:40.1333333+00:00

    how to upgrade PostgreSQL client in azure cloud shell

    To upgrade your PostgreSQL client in Azure Cloud Shell, follow these steps:

    1. Open Azure Cloud Shell.

    Check Current Version: First, check the current version of your PostgreSQL client by running:

    bash

    psql --version
    

    Update PostgreSQL Client: If an update is available, you can upgrade the PostgreSQL client using the package manager. For example, if you're using Ubuntu, you can run:

    bash

    sudo apt-get update
    sudo apt-get install postgresql-client
    

    Verify Upgrade: After the installation, verify the upgrade by checking the version again:

    bash

    psql --version
    
    1. Restart Cloud Shell.

  2. S, P1686MS (623-WIPRO LIMITED) 0 Reputation points
    2025-01-24T10:28:16.7666667+00:00

    I ran this command in the Dockerfile, but the pg_dump version is not upgraded. It's showing the same version.


  3. S, P1686MS (623-WIPRO LIMITED) 0 Reputation points
    2025-01-24T10:50:34.1266667+00:00

    I ran this command in the Dockerfile, but the pg_dump version is not upgraded. It's showing the same version.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.