From 4b9e148f1ab5f304e657c674eb6f3a48185c3a08 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 2 Dec 2026 11:58:56 +0000 Subject: [PATCH 1/5] Test against PostgreSQL 15 to 19 and EDB Advanced Server 15 to 18, and add the 9.20 release notes. #10925 --- .github/workflows/run-feature-tests-epas.yml | 2 +- .github/workflows/run-feature-tests-pg.yml | 2 +- .github/workflows/run-python-tests-epas.yml | 4 +-- .github/workflows/run-python-tests-pg.yml | 2 +- docs/en_US/release_notes.rst | 1 + docs/en_US/release_notes_9_20.rst | 29 ++++++++++++++++++++ 6 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 docs/en_US/release_notes_9_20.rst diff --git a/.github/workflows/run-feature-tests-epas.yml b/.github/workflows/run-feature-tests-epas.yml index 5935985047d..ef482dc96f9 100644 --- a/.github/workflows/run-feature-tests-epas.yml +++ b/.github/workflows/run-feature-tests-epas.yml @@ -73,7 +73,7 @@ jobs: strategy: fail-fast: false matrix: - pgver: [14, 15, 16, 17, 18] + pgver: [15, 16, 17, 18] runs-on: ubuntu-22.04 diff --git a/.github/workflows/run-feature-tests-pg.yml b/.github/workflows/run-feature-tests-pg.yml index cb6ba4d3b0e..2854276b0d3 100644 --- a/.github/workflows/run-feature-tests-pg.yml +++ b/.github/workflows/run-feature-tests-pg.yml @@ -43,7 +43,7 @@ jobs: strategy: fail-fast: false matrix: - pgver: [14, 15, 16, 17, 18] + pgver: [15, 16, 17, 18, 19] runs-on: ubuntu-22.04 diff --git a/.github/workflows/run-python-tests-epas.yml b/.github/workflows/run-python-tests-epas.yml index 760aa225fab..1d11cf1d424 100644 --- a/.github/workflows/run-python-tests-epas.yml +++ b/.github/workflows/run-python-tests-epas.yml @@ -109,7 +109,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-22.04, windows-latest] - pgver: [14, 15, 16, 17, 18] + pgver: [15, 16, 17, 18] postgisver: [34] exclude: - pgver: 18 @@ -153,7 +153,7 @@ jobs: run: | FOR /f "delims=" %%F IN ('python tools\get_sb_package.py "${{ secrets.EDB_SBP_URL }}" "edb_as${{ matrix.pgver }}_dbserver" "windows-x64"') DO SET INSTALLER_EXE=%%F ECHO Running %INSTALLER_EXE%... - %INSTALLER_EXE% --prefix C:\EPAS\${{ matrix.pgver }} --datadir C:\EPAS\${{ matrix.pgver }}\data --serverport 58${{ matrix.pgver }} --superpassword enterprisedb --create_samples no --install_runtimes 0 --mode unattended --unattendedmodeui none --disable-components stackbuilderplus${{ matrix.pgver < 15 && ',pgadmin4' || '' }} + %INSTALLER_EXE% --prefix C:\EPAS\${{ matrix.pgver }} --datadir C:\EPAS\${{ matrix.pgver }}\data --serverport 58${{ matrix.pgver }} --superpassword enterprisedb --create_samples no --install_runtimes 0 --mode unattended --unattendedmodeui none --disable-components stackbuilderplus choco install -y mitkerberos diff --git a/.github/workflows/run-python-tests-pg.yml b/.github/workflows/run-python-tests-pg.yml index 5975d830dd9..5c80d09e281 100644 --- a/.github/workflows/run-python-tests-pg.yml +++ b/.github/workflows/run-python-tests-pg.yml @@ -75,7 +75,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, ubuntu-22.04, windows-latest] - pgver: [14, 15, 16, 17, 18] + pgver: [15, 16, 17, 18, 19] runs-on: ${{ matrix.os }} diff --git a/docs/en_US/release_notes.rst b/docs/en_US/release_notes.rst index 89dd444c0b3..051f00db61a 100644 --- a/docs/en_US/release_notes.rst +++ b/docs/en_US/release_notes.rst @@ -12,6 +12,7 @@ notes for it. :maxdepth: 1 + release_notes_9_20 release_notes_9_19 release_notes_9_18 release_notes_9_17 diff --git a/docs/en_US/release_notes_9_20.rst b/docs/en_US/release_notes_9_20.rst new file mode 100644 index 00000000000..b09c07fb61e --- /dev/null +++ b/docs/en_US/release_notes_9_20.rst @@ -0,0 +1,29 @@ +************ +Version 9.20 +************ + +Release date: TBD + +This release contains a number of bug fixes and new features since the release of pgAdmin 4 v9.19. + +Supported Database Servers +************************** +**PostgreSQL**: 15, 16, 17, 18 and 19 + +**EDB Advanced Server**: 15, 16, 17 and 18 + +Bundled PostgreSQL Utilities +**************************** +**psql**, **pg_dump**, **pg_dumpall**, **pg_restore**: 18.7 + + +New features +************ + + +Housekeeping +************ + + +Bug fixes +********* From 3c84f0f37b172c20ac775fc7680108f3042f9c39 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 2 Dec 2026 12:48:00 +0000 Subject: [PATCH 2/5] Map PostgreSQL 19 to its own binary path row in the backup and restore feature test. --- .../feature_tests/pg_utilities_backup_restore_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/regression/feature_tests/pg_utilities_backup_restore_test.py b/web/regression/feature_tests/pg_utilities_backup_restore_test.py index 30a4652dd23..a944e48a160 100644 --- a/web/regression/feature_tests/pg_utilities_backup_restore_test.py +++ b/web/regression/feature_tests/pg_utilities_backup_restore_test.py @@ -283,8 +283,9 @@ def _update_preferences(self): default_binary_path = self.server['default_binary_paths'] if default_binary_path is not None: def get_server_version_string(): - server_version = {180000: '18', 170000: '17', 160000: '16', - 150000: '15', 140000: '14', 130000: '13'} + server_version = {190000: '19', 180000: '18', 170000: '17', + 160000: '16', 150000: '15', 140000: '14', + 130000: '13'} for k, v in server_version.items(): if k <= self.server_information['server_version']: return v From c31cae447a9cfac0d12c47ef96413ed56f171776 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 2 Dec 2026 13:07:26 +0000 Subject: [PATCH 3/5] Order database default privilege grants deterministically in reverse-engineered SQL, which PostgreSQL 19 on macOS returned in a different order. --- .../databases/templates/databases/sql/default/defacl.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql b/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql index 3dfc7df096d..a190b5fc80a 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql @@ -160,5 +160,8 @@ FROM( LEFT JOIN pg_catalog.pg_roles g ON (e.grantor = g.oid) LEFT JOIN pg_catalog.pg_roles gt ON (e.grantee = gt.oid) GROUP BY g.rolname, gt.rolname, e.deftype -ORDER BY e.deftype)) f order by f.acltype DESC +ORDER BY e.deftype)) f +-- Within each kind of ACL, list the owner's own entry first and then the other +-- grantees by name, so the generated SQL does not depend on the plan's row order. +ORDER BY f.acltype DESC, (f.grantee = f.grantor) DESC, f.grantee {% endif %} From 622d9ed15b68db48297fea2e4690a4271f357d51 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 2 Dec 2026 13:37:16 +0000 Subject: [PATCH 4/5] Break ties on the grantor too when ordering database default privileges. --- .../databases/templates/databases/sql/default/defacl.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql b/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql index a190b5fc80a..3cb80efb87c 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/default/defacl.sql @@ -161,7 +161,8 @@ LEFT JOIN pg_catalog.pg_roles g ON (e.grantor = g.oid) LEFT JOIN pg_catalog.pg_roles gt ON (e.grantee = gt.oid) GROUP BY g.rolname, gt.rolname, e.deftype ORDER BY e.deftype)) f --- Within each kind of ACL, list the owner's own entry first and then the other --- grantees by name, so the generated SQL does not depend on the plan's row order. -ORDER BY f.acltype DESC, (f.grantee = f.grantor) DESC, f.grantee +-- Within each kind of ACL, list the owner's own entry first and then the rest +-- by grantee and grantor name, so the generated SQL does not depend on the +-- plan's row order. +ORDER BY f.acltype DESC, (f.grantee = f.grantor) DESC, f.grantee, f.grantor {% endif %} From 25b0c34987999fa4002fe987b8d4014dbb591e53 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 2 Dec 2026 14:47:10 +0000 Subject: [PATCH 5/5] Don't ask the PostgreSQL 19 Windows installer to disable pgAdmin, a component it no longer has. --- .github/workflows/run-python-tests-pg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-python-tests-pg.yml b/.github/workflows/run-python-tests-pg.yml index 5c80d09e281..112aab0910e 100644 --- a/.github/workflows/run-python-tests-pg.yml +++ b/.github/workflows/run-python-tests-pg.yml @@ -133,7 +133,7 @@ jobs: run: | FOR /f "delims=" %%F IN ('python tools\get_sb_package.py "https://www.postgresql.org/applications-v2.xml" "postgresql_${{ matrix.pgver }}" "windows-x64"') DO SET INSTALLER_EXE=%%F ECHO Running %INSTALLER_EXE%... - %INSTALLER_EXE% --prefix C:\PostgreSQL_custom\${{ matrix.pgver }} --datadir C:\PostgreSQL_custom\${{ matrix.pgver }}\data --serverport 59${{ matrix.pgver }} --superpassword postgres --install_runtimes 0 --mode unattended --unattendedmodeui none --disable-components pgAdmin,stackbuilder --enable-components server,commandlinetools" + %INSTALLER_EXE% --prefix C:\PostgreSQL_custom\${{ matrix.pgver }} --datadir C:\PostgreSQL_custom\${{ matrix.pgver }}\data --serverport 59${{ matrix.pgver }} --superpassword postgres --install_runtimes 0 --mode unattended --unattendedmodeui none --disable-components stackbuilder${{ matrix.pgver < 19 && ',pgAdmin' || '' }} --enable-components server,commandlinetools" choco install -y mitkerberos REM Ignore error 3010 (reboot required)