You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need Azure Cloud Shell to support the same versions of PostgreSQL as Azure PostgreSQL Flexible Server supports.
This will allow us to use automations for backup/restore operations.
I understand that Cloud Shell is based on Azure Linux 3.0, however there isn't any reason that Azure Linux 3.0 cannot be updated to match Azure Database for PostgreSQL – Flexible Server supported versions.
Hello, yes when Cloud Shell updates the image, it pulls the latest psql version available in Azure Linux 3.0 in packages.microsoft.com: https://packages.microsoft.com/azurelinux/3.0/prod/base/x86_64/Packages/p/. Right now, that's v16.12 which Cloud Shell just updated to last week. To get newer versions of Postgres added to Azure Linux (and therefore Cloud Shell) when Azure PostgreSQL Flexible Server supports it, I suggest creating an issue at https://github.com/microsoft/azurelinux. I'll also reach out internally to see if this can be done.
The workaround does not work for me. I get erorr undefined symbol: PQsendPipelineSync when running psql.
So, I am currently a bit lost how to use Cloud Shell together with PostgreSQL Flexible Server (which is running version 17.10).
Activity
Iulia-Andreea20 commentedon Apr 7, 2026
Same issue here. Waiting for an update.
mbifeld commentedon Apr 13, 2026
Hello, yes when Cloud Shell updates the image, it pulls the latest psql version available in Azure Linux 3.0 in packages.microsoft.com: https://packages.microsoft.com/azurelinux/3.0/prod/base/x86_64/Packages/p/. Right now, that's v16.12 which Cloud Shell just updated to last week. To get newer versions of Postgres added to Azure Linux (and therefore Cloud Shell) when Azure PostgreSQL Flexible Server supports it, I suggest creating an issue at https://github.com/microsoft/azurelinux. I'll also reach out internally to see if this can be done.
Related to #338
EricOlsenRFDS commentedon Apr 13, 2026
EricOlsenRFDS commentedon Apr 15, 2026
My tested workaround for Azure Cloud Shell not including PostgreSQL client tool versions needed
Open Azure Cloud Shell where needed
use "arch" if needed to determine if shell is amd64 or ARM
Use wget to bring in a copy of the postgresql-client tools of the version you needed
Must be in base directory to use wget - " [ ~ ]$"
wget http://ftp.de.debian.org/debian/pool/main/p/postgresql-18/postgresql-client-18_18.3-1+b1_amd64.deb
Extract Files as needed
ar -xv postgresql-client-18_18.3-1+b1_amd64.deb
tar -xvf data.tar.xz
Move to folder containing postgresql-client tools
cd ~/usr/lib/postgresql/18/bin
Make any files needed executable
chmod +x pg_dump
chmod +x pg_restore
chmod +x psql
All commands must use the full path of the newly copied commands, or they will use the PATH of the tools included with Cloud Shell
~/usr/lib/postgresql/18/bin/pg_dump
J0F3 commentedon Jul 15, 2026
Any news on this?
The workaround does not work for me. I get erorr
undefined symbol: PQsendPipelineSyncwhen runningpsql.So, I am currently a bit lost how to use Cloud Shell together with PostgreSQL Flexible Server (which is running version 17.10).