Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix powa_stat_archiver_src for pg 10- #67

Merged
merged 1 commit into from
Jul 19, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
strategy:
matrix:
postgres_major_version: [
"9.6",
"10",
"11",
"12",
Expand Down Expand Up @@ -79,6 +80,8 @@ jobs:
pg_ctl -D $DATADIR initdb
echo "shared_preload_libraries = 'pg_stat_statements'" >> $DATADIR/postgresql.conf
pg_ctl -D $DATADIR -l $LOGFILE start || cat $LOGFILE
# a sleep is required for pg9.6 (at least)
sleep 1
psql -c 'select 1 as ok' postgres

- name: Build and install powa-archivist for postgres ${{ matrix.postgres_major_version }}
Expand Down
2 changes: 1 addition & 1 deletion powa--5.0.0dev.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4448,7 +4448,7 @@ BEGIN
v_current_wal := NULL;
ELSE
IF current_setting('server_version_num')::int < 100000 THEN
v_current_wal := pg_walfile_name(pg_last_wal_receive_lsn());
v_current_wal := pg_xlogfile_name(pg_current_xlog_location());
ELSE
v_current_wal := pg_walfile_name(pg_current_wal_lsn());
END IF;
Expand Down