Skip to content

Commit 4e2fd40

Browse files
committed
pgagent extension should be created only EPAS < 17.
1 parent ae9d324 commit 4e2fd40

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
sleep 2
6262
done
6363
64-
psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;'
64+
- name: Create pgagent extension on Linux
65+
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver <= 16 }}
66+
run: psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;'
6567

6668
- name: Install Python dependencies
6769
run: make install-python-testing

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ jobs:
101101
>&2 echo "EPAS is unavailable - sleeping for 2 seconds"
102102
sleep 2
103103
done
104-
105-
psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;'
104+
105+
- name: Create pgagent extension on Linux
106+
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver <= 16 }}
107+
run: psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;'
106108

107109
- name: Install Python dependencies on Linux
108110
if: ${{ matrix.os == 'ubuntu-22.04' }}

0 commit comments

Comments
 (0)