Skip to content

Commit 5d9db11

Browse files
author
Oleg Gurev
committed
Merge remote-tracking branch 'origin/ce' into pipeline-update
2 parents d779318 + 1afe067 commit 5d9db11

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ jobs:
1414
Test:
1515
strategy:
1616
matrix:
17-
# pg_version: [15]
18-
pg_version: [11, 12, 13, 14, 15]
17+
pg_version: [13, 14, 15, 16, 17, 18]
1918
os: [ubuntu-22.04]
20-
# tests: [tap]
2119
tests: [tap, python]
22-
# test_mode: [normal, legacy, paranoia]
2320
test_mode: [normal, paranoia]
2421
exclude:
2522
- tests: tap
@@ -56,6 +53,11 @@ jobs:
5653
- name: Apply ptrack patches
5754
run: make patch top_builddir=../postgres
5855
working-directory: ptrack
56+
- name: Apply probackup patch
57+
if: ${{ matrix.pg_version == '18' }}
58+
run: git apply ../pg_probackup/patches/REL_18_STABLE_pg_probackup.patch
59+
working-directory: postgres
60+
shell: bash {0}
5961
- name: Install Postgres
6062
run: |
6163
make install-postgres top_builddir=$GITHUB_WORKSPACE/postgres prefix=$HOME/pgsql &&

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ifdef USE_PGXS
2222
PGXS := $(shell $(PG_CONFIG) --pgxs)
2323
include $(PGXS)
2424
else
25+
subdir = contrib/ptrack
2526
top_builddir = ../..
2627
# Makefile.global is a build artifact and initially may not be available
2728
ifneq ($(wildcard $(top_builddir)/src/Makefile.global), )

t/001_basic.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ BEGIN
117117

118118
# Remember ptrack init_lsn
119119
my $init_lsn = $node->safe_psql("postgres", "SELECT ptrack_init_lsn()");
120-
unlike(
120+
like(
121121
$init_lsn,
122-
qr/0\/0/,
122+
qr/0\/[0-9A-F][0-9A-F]+/,
123123
'ptrack init LSN should not be 0/0 after CHECKPOINT');
124124

125125
# Ptrack map should survive crash
@@ -161,9 +161,9 @@ BEGIN
161161

162162
$node->safe_psql("postgres", "CHECKPOINT");
163163
$res_stdout = $node->safe_psql("postgres", "SELECT ptrack_init_lsn()");
164-
unlike(
164+
like(
165165
$res_stdout,
166-
qr/0\/0/,
166+
qr/0\/[0-9A-F][0-9A-F]+/,
167167
'ptrack init LSN should not be 0/0 after CHECKPOINT');
168168
ok($res_stdout ne $init_lsn, 'ptrack init_lsn should not be the same after map resize');
169169
$res_stdout = $node->safe_psql("postgres", "SELECT ptrack_get_pagemapset('$flush_lsn')");

0 commit comments

Comments
 (0)