Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:
Test:
strategy:
matrix:
# pg_version: [15]
pg_version: [11, 12, 13, 14, 15]
pg_version: [13, 14, 15, 16, 17, 18]
os: [ubuntu-22.04]
# tests: [tap]
tests: [tap, python]
# test_mode: [normal, legacy, paranoia]
test_mode: [normal, paranoia]
exclude:
- tests: tap
Expand Down Expand Up @@ -56,6 +53,11 @@ jobs:
- name: Apply ptrack patches
run: make patch top_builddir=../postgres
working-directory: ptrack
- name: Apply probackup patch
if: ${{ matrix.pg_version == '18' }}
run: git apply ../pg_probackup/patches/REL_18_STABLE_pg_probackup.patch
working-directory: postgres
shell: bash {0}
- name: Install Postgres
run: |
make install-postgres top_builddir=$GITHUB_WORKSPACE/postgres prefix=$HOME/pgsql &&
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ifdef USE_PGXS
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/ptrack
top_builddir = ../..
# Makefile.global is a build artifact and initially may not be available
ifneq ($(wildcard $(top_builddir)/src/Makefile.global), )
Expand Down
8 changes: 4 additions & 4 deletions t/001_basic.pl
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ BEGIN

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

# Ptrack map should survive crash
Expand Down Expand Up @@ -161,9 +161,9 @@ BEGIN

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