Skip to content

Commit 2454e3c

Browse files
authored
Merge branch 'master' into GH_8015
2 parents 4ee67f4 + be534be commit 2454e3c

42 files changed

Lines changed: 486 additions & 348 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/run-feature-tests-pg.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ jobs:
3232
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
3333
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
3434
35+
- name: Uninstall PostgreSQL if already present
36+
run: |
37+
if [ -n "$(ls /etc/postgresql/*/*/postgresql.conf 2>/dev/null)" ]; then
38+
# Extract the major version from pg_config
39+
installed_pg_version=$( pg_config --version | cut -d ' ' -f 2 | cut -d '.' -f 1 )
40+
echo "Installed PostgreSQL version: $installed_pg_version"
41+
if [ $installed_pg_version != ${{ matrix.pgver }} ]; then
42+
sudo pg_dropcluster $installed_pg_version main --stop
43+
sudo apt-get -y remove "postgresql-${installed_pg_version}"
44+
fi
45+
fi
46+
3547
- name: Install platform dependencies
3648
run: |
3749
sudo apt update

.github/workflows/run-python-tests-pg.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ jobs:
3434
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
3535
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
3636
37+
- name: Uninstall PostgreSQL if already present on linux
38+
if: ${{ matrix.os == 'ubuntu-22.04' }}
39+
run: |
40+
if [ -n "$(ls /etc/postgresql/*/*/postgresql.conf 2>/dev/null)" ]; then
41+
# Extract the major version from pg_config
42+
installed_pg_version=$( pg_config --version | cut -d ' ' -f 2 | cut -d '.' -f 1 )
43+
echo "Installed PostgreSQL version: $installed_pg_version"
44+
if [ $installed_pg_version != ${{ matrix.pgver }} ]; then
45+
sudo pg_dropcluster $installed_pg_version main --stop
46+
sudo apt-get -y remove "postgresql-${installed_pg_version}"
47+
fi
48+
fi
49+
3750
- name: Install platform dependencies on Linux
3851
if: ${{ matrix.os == 'ubuntu-22.04' }}
3952
run: |
@@ -46,7 +59,7 @@ jobs:
4659
brew install postgresql@${{ matrix.pgver }}
4760
echo "/opt/homebrew/opt/postgresql@${{ matrix.pgver }}/bin" >> $GITHUB_PATH
4861
49-
- name: Uninstall PostgreSQL if already present
62+
- name: Uninstall PostgreSQL if already present on windows
5063
if: ${{ matrix.os == 'windows-latest' }}
5164
run: |
5265
if exist "C:\Program Files\PostgreSQL\{{ matrix.pgver }}\uninstall-postgresql.exe" (

docs/en_US/container_deployment.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ Override the default file path for the server definition list. See the
134134
/pgadmin4/servers.json mapped file below for more information. See the format
135135
of the `Servers JSON file <https://www.pgadmin.org/docs/pgadmin4/latest/import_export_servers.html#json-format>`_.
136136

137+
**PGADMIN_REPLACE_SERVERS_ON_STARTUP**
138+
139+
*Default: null*
140+
141+
By default, the server definitions are only loaded on first launch, i.e. when initializing the configuration database. See PGADMIN_SERVER_JSON_FILE above.
142+
143+
If this variable is set to True, the server definitions will be replaced on every launch. This can be used to declaratively manage the server definitions.
144+
137145
**PGADMIN_PREFERENCES_JSON_FILE**
138146

139147
*Default: /pgadmin4/preferences.json*
66.1 KB
Loading
-5.81 KB
Loading
1.88 KB
Loading

docs/en_US/images/debug_main.png

24.6 KB
Loading
364 Bytes
Loading

docs/en_US/images/debug_stack.png

-1.52 KB
Loading
480 Bytes
Loading

0 commit comments

Comments
 (0)